Class: LinksController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- LinksController
- Includes:
- SocialStream::Controllers::Objects
- Defined in:
- app/controllers/links_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
4 5 6 7 8 9 10 |
# File 'app/controllers/links_controller.rb', line 4 def create super do |format| format.json { render :json => resource } format.js { render } format.all {redirect_to link_path(resource) || home_path} end end |