Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Mert's Profile

GitHub User: yuzdeyuzmert

Site: www.aksoymert.com

Comments by Mert

Avatar

in your controller:

def show
respond_to do |format|
format.html # show.html.erb
format.json { render json: @order }
format.pdf { render :layout => false }
end
end

Avatar

in your controller:

def show
respond_to do |format|
format.html # show.html.erb
format.json { render json: @order }
format.pdf { render :layout => false }
end
end