Thursday, February 9, 2012

[Rails] Re: Re: Re: Re: Re: Multiple feature creation.

> That one-liner ought to Just Work.
>
> Walter

I have my code like this but I just doesn't seem to generate a wishlist
:(

before_filter :set_wishlist, :only => :create

def set_wishlist
@wishlist = Wishlist.create(params[:wishlist])
@wishlist.user = current_user
@wishlist.save
end

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