<%= f.select :country, options_for_select(["CA", "US"]) %>


On Thu, Oct 4, 2018 at 6:40 AM Joe Guerra <jgue...@jginfosys.com> wrote:

> I'm not sure why I went to this extent, but I was trying to remove the gem
> and failed.  (it still kept finding the helper method - even though I
> removed it from my view)
>
> Anyways,  I'm got this code...  but it doesn't like the label;
>
> <%= f.country_select :country, only: ["CA", "US"], label: 'Country',
> required: true %>
>
> Maybe there's a better way to do this with simple forms, I just need 2
> values in the drop down.
>
> Any suggestions?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/704a3b5c-9218-4a8e-a32a-0d919d089e2b%40googlegroups.com
> <https://groups.google.com/d/msgid/rubyonrails-talk/704a3b5c-9218-4a8e-a32a-0d919d089e2b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAJ6MPzJn7Qr8%3DjxSdDhz8UzX0gmcrCpQZrFmODz_qSSSHBAOWQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to