From: Ivor Paul Date: 2007-05-03T00:39:08+09:00 Subject: Re: Newbie question: How to get an object in the Controller from a view's hidden field ------=_Part_5961_15060031.1178120347598 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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. > > > > > > ------=_Part_5961_15060031.1178120347598--