Re: [Rails] Rendering partial views with ajax calls in rails 3.1

2012-05-21 Thread Walter Lee Davis
On May 21, 2012, at 8:45 AM, Joao Martins wrote: > I'm starting now with rails, and i have simply question i think. > I need to render two partials in one ajax call: > > I have the following controller: > ># GET /hosts/1 ># GET /hosts/1.json >def show > @host = Host.find(param

[Rails] Rendering partial views with ajax calls in rails 3.1

2012-05-21 Thread Joao Martins
I'm starting now with rails, and i have simply question i think. I need to render two partials in one ajax call: I have the following controller: # GET /hosts/1 # GET /hosts/1.json def show @host = Host.find(params[:id]) respond_to do |format| format.html #sho

[Rails] Rendering partial views with ajax calls in rails 3.1

2012-05-21 Thread Joao Martins
Hi, i'm starting now with rails, and i have simply question. I need to render two partials in one ajax call: I have the following controller: # GET /hosts/1 # GET /hosts/1.json def show @host = Host.find(params[:id]) respond_to do |format| format.html #show.html format.js