Oh I'm sorry, I didn't quite understand your question earlier, its clearer now.
What you can consider doing is attaching the Check object's id into the hidden_field, and then pass the id into your create method. Then all you need to do is to use ActiveRecord to retrieve that Check object with your id. David On Tue, Feb 8, 2011 at 5:13 PM, Srikanth Jeeva <li...@ruby-forum.com> wrote: > Hi Pascal, > > > what you see in the params is not the Check object but it's string > > representation. > > There is no sane way to get the actual object out of this. I guess > > what you want is > > to pass the id of the check object and not the object itself. > > for example of object i made it @c = Check.first. > > Actually its > > @c = Check.new > @c.name = "Srikanth" > @c.number = 1234 > > And i need this object in create. > > Thanks, > Srikanth > > -- > 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 rubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.