I am using a drop down box in a form, the method is GET. The data that i am selecting in the box is not getting stored in the database. But when i am not using the drop down box the rest of the data is getting stored. I stored the submitted form data in an instance variable. When i am trying to print the instance variable no output is coming..... Can anybody tell how to get the selected data in the drop down box in the other form? --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 6 Nov 2007, at 10:23, Subhash wrote:> > I am using a drop down box in a form, the method is GET. The data > that > i am selecting in the box is not getting stored in the database. But > when i am not using the drop down box the rest of the data is getting > stored. I stored the submitted form data in an instance variable. > When > i am trying to print the instance variable no output is coming..... > Can anybody tell how to get the selected data in the drop down box in > the other form?People can''t help you if you don''t show them what you are doing. Fred --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Are you doing it like this <%= collection_select(:product, :Product_ID, Product.find(:all), :id, :Product_Name) %> OR check this post http://nasir.wordpress.com/2007/11/02/not-binding-your-selection-list-to-a-particular-model-in-rails/ On Nov 6, 10:23 am, Subhash <Subhocal...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I am using a drop down box in a form, the method is GET. The data > that > i am selecting in the box is not getting stored in the database. But > when i am not using the drop down box the rest of the data is getting > stored. I stored the submitted form data in an instance variable. > When > i am trying to print the instance variable no output is coming..... > Can anybody tell how to get the selected data in the drop down box in > the other form?--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---