Class: PrintsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- PrintsController
- Defined in:
- app/controllers/prints_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
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 |