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

2012-05-22 Thread Joao Martins
Hi, Thank you very much 4 helping, working with render :partial = 'host2', :locals = { :host2 = @host } cheers, João On May 21, 11:18 pm, Walter Lee Davis wa...@wdstudio.com wrote: On May 21, 2012, at 8:45 AM, Joao Martins wrote: I'm starting now with rails, and i have simply

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

2012-05-21 Thread Frederick Cheung
On May 21, 1:45 pm, Joao Martins joao.rib.mart...@gmail.com 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 =