RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: yuzdeyuzmert
Site: www.aksoymert.com
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
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
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