Skip to content

Instantly share code, notes, and snippets.

@mattpolito
Created January 22, 2009 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mattpolito/50726 to your computer and use it in GitHub Desktop.
Save mattpolito/50726 to your computer and use it in GitHub Desktop.
def new
@product_request = ProductRequest.new
@ps = ProductSpecification.find(params[:spec])
@product_request.height = @ps.height
@product_request.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