Displaying 2 results from an estimated 2 matches for "origin_countri".
Did you mean:
origin_country
2007 Mar 20
2
collection_select - why doesn't it work?
Hi all
I guess this is quite a newbie question, but I''m just stuck here and
don''t know why.
<%= form.collection_select :origin_country, Country.find(:all), :id,
:name %>
gives me a select list with name="member[origin_country]". When
submitting the form the following error is shown:
Country expected, got String
When I try
<%= form.collection_select
2007 Nov 27
0
Working with one model from another
Hi all,
I have some code where I''d like to set up an instance of a non-database
model from another, ActiveRecord, model in order to use some custom
methods on a string, without mixing extra methods into the String class.
I understand this might be less-than-sensible as models should normally
stand on their own..?
My two models:
#######################
# models/qualified_name.rb #