On Wed, Apr 2, 2014 at 10:52 PM, Anu Sebastian <li...@ruby-forum.com> wrote: > tamouse m. wrote in post #1139937: >> On Thu, Mar 13, 2014 at 1:26 AM, Anu Sebastian <li...@ruby-forum.com> >> wrote: >>> how to add defult value to the country_select gem.. pls help me >>> >> >> I don't know for sure, but I think you can pass in an option: >> `:selected => code` where code is the country code. > > not working......
Show your code. This is on the README page: Supplying additional html options: country_select("user", "country", { priority_countries: ["GB", "FR"] }, { selected: "GB", class: 'form-control' }) -- 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/CAHUC_t-1fFaeWzkEv8EZv6Jrj-TNKVN0iXJhrC9HpX2K-Oobhg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.