From: Agnisys Date: 2007-05-03T09:50:06+09:00 Subject: Re: Newbie question: How to get an object in the Controller from a view's hidden field Thanks Igor for you useful response. I would try the Rails community. I didn't realize this is a Ruby ONLY list. Anupam. --- Ivor Paul wrote: > You will need to pass the id and then get the object from the db using the > id in the controller. > > Secondly - ruby is the language in which rails is developed. This list is > for the language, which is used for more than just rails, so posting rails > questions to this list is annoying to people who have nothing to do with > rails. > > For rails related questions join the rails mailing list: > > http://www.rubyonrails.org/community > > Regards > Ivor > > On 5/2/07, Agnisys wrote: > > > > Hi, > > I'm trying to pass an object from the View to the controller as a hidden > > field. > > > > Two quick questions: > > For a hidden field, how do I pass a complete object to the controller? > > For example, I have an object of type Issue, what should the second > > argument be in the > > following: > > > > <%= hidden_field("issue", ?, "value" => @issue) %> > > > > Secondly, how would I access this object in the controller? > > > > Any help would be appreciated. > > > > Thanks, > > Anupam. > > > > > > > > > > > > >