Hello!
Being new to rails, those things are bound to happen : little
technical problem I have been struggling with.
I need to write a select for a field that can be NULL
If I write this line in the view, I dont have any empty line:
<p><label for="coloc_id">Coloc</label><br/>
<%= select("lease", "coloc_id", Tennant.find(:all).collect {|t|
[ t.name, t.id ] }) %>
How can I get one?
Thanks!
Julien
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---