On Sep 13, 3:36 pm, Abhishek shukla <[email protected]> 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 [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