Rails 3 link_to :remote

I recently moved to Rails 3 and am still getting used to some of its new
ways of working.

I have the following code:

I wasn't sure if this was the right way to accomplish this:

Matt Royer wrote:

I wasn't sure if this was the right way to accomplish this:

----

format.js {
  render :update do |page|
    page.replace_html 'order_div', :partial => 'show_order'
  end
}

----

Sorry, forgot to say that this is in my index action of my orders
controller. Thanks.

--Matt Royer

Update for anyone that needs help in this area. I found my problem. You
might have to do the same (if you are using this function the way I am).

In my controller, I don't know why I put this in the Index action
before. It is now in the SHOW (duh) action: