Friday, September 17, 2010

[Rails] Re: Re: Trying to look up comment through an ID, but failing

radhames brito wrote:
> just put
>
> redirect_to :back
>
> at the end of the create

Hi,
When I try that with a threaded comment, it runs into an error:
Cannot redirect to nil!

I am using a polymorphic association for my articles,profiles and
comments. My comments controller marks the articles and profiles as
commentable, but I have to take a different approach when it comes to my
comments.
--
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