>>
> 
> If you want a redirect from rjs that is how you do it
> (the  :controller bit isn't needed). That will do a full page refresh
> do.
> 
> Fred

 The trouble is that it's not even getting to the .rjs. That has been my 
problem all along.
When I click the 'cmment button I get

 Comment Create (0.4ms)   INSERT INTO "comments" ("created_at", "body", 
"updated_at", "story_id") VALUES('2010-08-02 09:47:22', 'dog', 
'2010-08-02 09:47:22', 1)

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

This is comments/controller   create

def create
    @story = Story.find(params[:story_id])
    @story.comments.create params[:comment]
    respond_to do |format|
      format.js
    end
  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 [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