Topic: Problems with link_to_remote

Well, this is my action in contoller "usuario":

 ...
def acao
     render :action => "list", :layout => false
end
...

and my view "empresa/list":
 ...
<%= link_to_remote ("Lista de Usuarios",
                    :update => "corpo" ,
                    :url => {:controller => "usuario"  ,:action => "acao"})%>
<div id="corpo"></div>
...

But this not happening the effect, the list of "usuarios" this not appearing in the list of "empresas". The code this correct, what this lacking?

Re: Problems with link_to_remote

Did you add the javascript header?

<%= javascript_include_tag :defaults %>

Also, you may need to find the usarios in the controller action:

def acao
  @usarios = Userio.find(:all)
  render :action => "list", :layout => false
end

Railscasts - Free Ruby on Rails Screencasts