Joshua Mckinney wrote:
> Have you tried naming the file create.js.rjs?

Good idea but no difference.

The latest configuration of the create function is:

 def create
    @story = Story.find(params[:story_id])
    @story.comments.create params[:comment]
    request.format = :js
 end

Gives a page with the address http://localhost:3000/stories/2/comments
it should be http://localhost:3000/stories/2/ and it says this.

Template is missing

Missing template comments/create.erb in view path app/views

Even if I make create.html.erb or as it asks create.erb it makes no 
difference. Does that shed any light on the problem?

In peace Neil
-- 
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.

Reply via email to