Class: PrintsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/prints_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



5
6
7
8
9
# File 'app/controllers/prints_controller.rb', line 5

def create
 @print = parent.prints.create(params[:print]||{})
 
 respond_with(@print, :location => send("#{parent.class.name.underscore}_url",parent))
end