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

I'm sorry this is being so difficult.
The  create function now looks like this:

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

The log now says

ArgumentError (too few arguments):
  app/controllers/comments_controller.rb:12:in `format'
  app/controllers/comments_controller.rb:12:in `create'

So I think we need

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

Which takes us back to the root of the problem


ActionView::MissingTemplate (Missing template comments/create.erb in 
view path app/views):
  app/controllers/comments_controller.rb:12:in `create'


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