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
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
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
3 matches
Mail list logo