Class: ViewsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ViewsController
- Defined in:
- app/controllers/views_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
5 6 7 8 9 |
# File 'app/controllers/views_controller.rb', line 5 def create @view = parent.views.create((params[:view]||{})) respond_with(@view, :location => send("#{parent.class.name.underscore}_url",parent)) end |