On 5 October 2010 11:14, PalaniKannan K <[email protected]> wrote:
> Dear All, > > Anybody knows to keep the selected option as alive even after "submit" in > collection_select. > Hi, I found the method. If I use like this I can keep as live. <%= collection_select(@table, "gm", @pop, "col1", "col1", :prompt => true, *:selected => params[:gm]*) %> The bold marked content, I inserted to my script and the selected value remains. > > -- > With Regards > Palani Kannan. K > > -- With Regards Palani Kannan. K -- 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.

