Hi Srikanth,

Are you looking to parse individual attributes of Check to your create
method or do you want to do the manipulations in create?

In your create method, you can just do something like:

def create
  @check = params[:checks]
  # and then you can manipulate it here
  # @check.inspect
end

Hope this helps.

Cheers,
David Chua
http://flavors.me/davidchua | http://dchua.com | @davidchua

On Tue, Feb 8, 2011 at 3:20 PM, Srikanth Jeeva <li...@ruby-forum.com> wrote:

> Hi,
>
> Im passing an object as follows.
>
> Controller:
>
> def new
>  @c = Check.first
> end
>
> View:
>
> <form action="create" method="post">
> <%= hidden_field_tag "checks", @c %>
> <%= submit_tag "submit" %>
> </form>
>
> The params i get in create method is,
> {"checks"=>"#<Check:0xa2c3134>", "commit"=>"submit"}
>
> Any idea how to parse "#<Check:0xa2c3134>" and take all the data?
>
> Thanks,
> Srikanth J
>
> --
> 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.

Reply via email to