[Rails] Re: carmen issue
On Sep 13, 3:36 pm, Abhishek shukla <bettera...@gmail.com> wrote:
> Hello I am facing some wired error with carmen
>
> ActionView::Template::Error (undefined method `collect' for "US":String):
> <%= f.country_select(:country, "US") %>
>
> Please if someone can help that will be great.
>
The second argument to country_select (priority_countries) is supposed
to be an Array, not just a string. Changing the above to:
<%= f.country_select(:country, ["US"]) %>
should work.
--Matt Jones
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home