Class: GroupsController

Inherits:
ApplicationController
  • Object
show all
Includes:
SocialStream::Controllers::Subjects
Defined in:
app/controllers/groups_controller.rb

Instance Method Summary collapse

Methods included from SocialStream::Controllers::Subjects

#profile_subject

Instance Method Details

#createObject



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

#destroyObject



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

#indexObject

Raises:

  • (ActiveRecord::RecordNotFound)


14
15
16
# File 'app/controllers/groups_controller.rb', line 14

def index
  raise ActiveRecord::RecordNotFound
end