On 18 November 2011 10:34, gbolahan a. <[email protected]> wrote:
> let me post some code around the Clisting controller
>
> def  create
>    @categories = Category.all
>    @clisting = Clisting.new(params[:clisting])

Like I said, you're likely to be passing a
params[:clisting][:category] value (which you probably should have
named "category_id" in your form) into your new Clisting. The clisting
expects a Category object in the category association, not a string
from params.

Do some debugging in this area, and see if that's part of the problem.

-- 
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