28 May 2007

Checking out a svn project with netbeans

I am using site5 for my rails hosting (for how long? The fcgi is just not stable ...) and I host the source code of my projects with subversion.

The svn integration in Netbeans can be slightly improved, as I could not check out my project using the GUI, I ended up using the command line and then imported the rails project into Netbeans ...
svn co svn+ssh://YOUR_USER_NAME_HERE@21croissants.com/home/YOUR_USER_NAME_HERE/rails/svn_repository/YOUR_PROJECT_HERE/trunk YOUR_PROJECT_NAME_IN_YR_LOCAL_MACHINE_HERE

11 May 2007

Do not forget to set up the routes when using the REST Controller generator

NameError in Contact#index

Showing app/views/contact/index.rhtml where line #18 raised:

undefined local variable or method `new_contact_path' for #<#<Class:0xb768e1bc>:0xb768e194>

Extracted source (around line #18):

16: <br />
18: <%= link_to 'New contact', new_contact_path %>

RAILS_ROOT: script/../config/..

Application Trace | Framework Trace | Full Trace
#{RAILS_ROOT}/app/views/contact/index.rhtml:18:in `_run_rhtml_47app47views47contact47index46rhtml'
app/controllers/contact_controller.rb:6:in `index'
app/controllers/contact_controller.rb:6:in `index'

Don't forget to set up the routes.rb when using the REST Controller generator !

Edit the routes.rb and:

ActionController::Routing::Routes.draw do |map|
  # The priority is based upon order of creation: first created -> highest priority.
  # Sample of regular route:
  # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
  # Keep in mind you can assign values other than :controller and :action

  # Sample of named route:
  # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
  # This route can be invoked with purchase_url(:id => product.id)

  # You can have the root of your site routed by hooking up ''
  # -- just remember to delete public/index.html.
  map.connect '', :controller => "sms", :action => 'new'

  # Allow downloading Web Service WSDL as a file with an extension
  # instead of a file named 'wsdl'
  map.connect ':controller/service.wsdl', :action => 'wsdl'

  # Install the default route as the lowest priority.
  map.connect ':controller/:action/:id'
  map.resources :contact

(I can't stand Zoho writer horrible interface: it's the most UNuser
friendly interface I have ever seen: you can't set the style of
the text to "normal")

Bitter Browser manual configuration sample script

<!-- BITTY BROWSER : WWW.BITTY.COM : {BEGIN} --> <script type="text/javascript">

/* Bitty Browser tips & tricks: */
/* http://www.bitty.com/manual/ */

bitty = {contents: [{
service: "bitty:browser",
title: "Bitty Browser",
width: "100%",
height: "1000",
titlebar: {display: "off"},
buttonbar: {textlabels: "off"},
searchbar: {display: "off"},
homepage: {contents: [{website: ""}]}

// -->
</script><script src="http://b1.bitty.com/b2script/" type="text/javascript"></script>

10 May 2007

XP Day France 2007

Last week I went to Paris in order to assist to the second XP Day France conference which was held in Paris. This was an excellent opportunity to catch up with the french speaking Agile & Rails communities. After all, I left Paris almost 5 years ago - in july 2002 ! Nethertheless, I am feeling deeply connected to my home country and I really can't stand bad croissants full of vegetable hydrogenated fat ;-) I have met and talked with passionate people, among others:

  • Laurent Bossavit, Paris, The organizer who did a very good job, the conference place rooms food & drinks were quite good. Laurent is an independant Agile consultant and offer training services about Agile practices
  • Richard Piacentini, Paris, who created RailsFrance, organized Paris on Rails and is a founder of nuxos.fr, a consulting company on open source and Rails projects.
  • Ludovic Blaas, Besançon (my home town!!!), Agile coach at Parkeon ex Schlumberger where people work with Pair Programming, unit testing, Continuous Integration and so on. Allez Besac!
  • Olivier Lafontan, UK, Agile consultant at exoftware. I attended 2 excellent session given by Olivier: "XP Game" perfect training session to re-learn how to do the planning and "Numbers which sell Agile methods" which focussed on ROI of Agile projects and how to give a business value to customer stories

  • Pascal Van Cauwenberghe, Brussels, nayima, gave a very good presentation on identifying bottlenecks on projects. Pascal is one of the inventor of the famous XP Game, he has also a looooot of experience in programming

  • Jacques Couvreur, Geneva, hortis.ch, gave a return on experience about Pair Programming
  • Jérôme Laurens, Paris, founder of ss2j, part of the "sustainable" and ethical consulting network ss2j
  • François Beauregard, Montreal gave a talk about GreenPepper, a product which is a mix of BDD / wiki and FIT
If you read in French and want to join the hip crowd of happy Rails developers, BUY THIS BOOK! This is the second edition, updated for Rails 1.2.3, translated by Laurent Julliard and Richard Piacentini and published at "Editions Eyrolles". A Must Have !

The image “http://www.editions-eyrolles.com/Scan/MaxiScan/9782212120790.jpg” cannot be displayed, because it contains errors.