Hey Walter,
I have the following in my userController
after_filter :set_wishlist, :only => :create
def set_wishlist
@wishlist = Wishlist.new(params[:wishlist])
@wishlist.user = current_user
end
It goes ahead but doesn't actually create a wishlist for the user. I
checked in the server log and it seems to just be searching for any
wishlist matching this user which it obviously wont find because it
hasn't been created.
Any suggestions?
Thanks.
--
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 [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.