Class: ViewsController

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

Instance Method Summary collapse

Instance Method Details

#createObject



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