tamouse m. wrote in post #1141848: > 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' })
here s my code <%=country_select("profile", "country", { priority_countries: ["GB", "FR"] }, { selected: "GB")%> after excecuting the code. default country selected as afganistan.. no change.. pls help me to find a solution -- Posted via http://www.ruby-forum.com/. -- 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/9a924394d2d9e10059812e0a33d26218%40ruby-forum.com. For more options, visit https://groups.google.com/d/optout.