2011/2/24 Vadim Antropov <[email protected]>:
> Hello, i need help.
> Devise + custom action in DeviseRegistrationController + dynamic select.
>
> Manual:
> http://pullmonkey.com/2008/3/30/dynamic-select-boxes-ruby-on-rails/
>
> Error:
> --------------------------------------------------------------
> NoMethodError in Devise/registrations#new
>
> Showing C:/projects/djob/app/views/devise/registrations/new.html.erb
> where line #37 raised:
>
> undefined method `map' for :id:Symbol
> Extracted source (around line #37):
>
> 34:
> 35: <p><%= f.label :country %><br />
> 36: <%= collection_select (:country_id, Country.all, :id, :country_name,

Either that should be f.collection_select or you need an extra
parameter before :country_id

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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-talk?hl=en.

Reply via email to