Class: SharesController

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

Instance Method Summary collapse

Instance Method Details

#createObject



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

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