title: Rails 3 and RJS
body: <p>I use the rails 3.0.0.beta</p>
  
  <p>Is there any new syntax to write RJS, here is an example</p>
  
  <pre><code>  def remote_create
      @photo = Photo.new(params[:photo])
  
      respond_to do |format|
        if @photo.save
          # add @photo's thumbnail to last import tag
          format.js {
            render :update do |page|
              page.insert_html :bottom, 'polaroids' , :partial    =&gt; 'polaroid', :locals =&gt; {:photo =&gt; @photo}
            end 
          }
        else
          #...
        end
      end
    end
  </code></pre>