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