Joshua Mckinney wrote: Try using: > def create > @story = Story.find(params[:story_id]) > @story.comments.create params[:comment] > request.format = :js > respond_to do |format| > format.js > end > end > > Although respond _to blocks are not always necessary, it can't hurt to > try.
Too bad, that gives ActionView::MissingTemplate (Missing template comments/create.erb in view path app/views): app/controllers/comments_controller.rb:13:in `create' Line 13 is respond_to do |format| So I took it out. create.js.rjs is in views/comments right I think. 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.

