Skip to content

Instantly share code, notes, and snippets.

@trevorturk
Forked from mattpolito/gist:50726
Created January 22, 2009 21:47
Show Gist options
  • Save trevorturk/50735 to your computer and use it in GitHub Desktop.
Save trevorturk/50735 to your computer and use it in GitHub Desktop.
def new
@ps = ProductSpecification.find(params[:spec])
@product_request = ProductRequest.new(:height => @ps.height, :width => @ps.width)
respond_to do |format|
format.html # new.html.erb
format.xml { render :xml => @product_request }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment