Tuesday, February 8, 2011

[Rails] Re: Passing Object in params, and parse.

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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate