Topic: Error in Rails 3.1 using js - "Template is missing"

I created app according to this post … javascript , but get an error:

Missing template posts/create, application/create with {:handlers=>[:erb, :builder, :coffee, :haml], :formats=>[:html], :locale=>[:en, :en]}. Searched in: * "/home/ember/Projects/test_app/app/views"
Maybe in Rails 3.1 actions render something by default. Besides, there no format js (:formats=>[:html]). But i can`t find any about this.

When i doing like this:

respond_to do |format|
    format.js {render :content_type => 'text/javascript'}

or without content_type - browser redirects to empty page. In this case:

respond_to do |format|
    format.html {render :nothing => true}

browser shows the same empty page. How can i do that without any redirects?

Maybe it`s old method?