Hello, Rails newbie....

How can I go From:

@book = current_user.books.build(params[:book])

TO:

@book = current_user.books.create(params[:book], :instance =>
current_user.instance_id)


right now I get the following error "wrong number of arguments (2 for
1)"

Thanks

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to