Class: GroupsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- GroupsController
- Includes:
- SocialStream::Controllers::Subjects
- Defined in:
- app/controllers/groups_controller.rb
Instance Method Summary collapse
Methods included from SocialStream::Controllers::Subjects
Instance Method Details
#create ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'app/controllers/groups_controller.rb', line 18 def create create! do |success, failure| success.html { self.current_subject = @group redirect_to :home } end end |
#destroy ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'app/controllers/groups_controller.rb', line 27 def destroy destroy! do |success, failure| success.html { self.current_subject = current_user redirect_to :home } end end |
#index ⇒ Object
14 15 16 |
# File 'app/controllers/groups_controller.rb', line 14 def index raise ActiveRecord::RecordNotFound end |