On Aug 2, 12:52 pm, Neil Bye <li...@ruby-forum.com> wrote:
> > Your log files say this is happening in your comments controller so it
> > should be in app/views/comments.
>
> > Fred
>
> There is a copy in app/views/comments. I've attached show.html.erb in
> case there is something I missed. The link_to, which is there as a test,
> works.
>
> This is how the comment function looks now.
>
> def create
> @story = Story.find(params[:story_id])
> @story.comments.create params[:comment]
> respond_to do |format|
> format.rjs
> end
> end
>
> Is there anything else I could send that might solve this?
The respond_to is unnecessary if you're only ever going to be using
the rjs template for this action
Fred
>
> Attachments:http://www.ruby-forum.com/attachment/4898/show.html.erb
>
> --
> Posted viahttp://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.
No comments:
Post a Comment