A
Agnisys
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.
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.