On 14 Nov 2008, at 10:13, Smarty 2k wrote: > > Enter <div id="first"> this div only working > > But.... Second <div id="first"> not working > > Not get values in second div > > please help me..... > > or > > <form action="/a/create"> > <div id="first"> > <div><input type="text" name="empfirstname[]"/></div> > <div><input type="text" name="emplastname[]"/></div> > </div> > <div id="second"> > <div><input type="text" name="empfirstname[]"/></div> > <div><input type="text" name="emplastname[]"/></div> > </div> > </form> > Through Error undefined method `downcase' for ["aaaaa", "aaaa", > ""]:Array
If you do this then params[:empfirstname] will be an array so you need to handle it appropriately. I have no idea what you are doing but it may be more appropriate to just disabled the inputs when you hide their containing div. Fred > > -- > 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 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 -~----------~----~----~----~------~----~------~--~---

