Class: Socializer::CirclesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Socializer::CirclesController
- Defined in:
- app/controllers/socializer/circles_controller.rb
Instance Method Summary collapse
- #contact_of ⇒ Object
- #contacts ⇒ Object
- #create ⇒ Object
- #destroy ⇒ Object
- #edit ⇒ Object
- #find_people ⇒ Object
- #index ⇒ Object
- #new ⇒ Object
- #show ⇒ Object
- #update ⇒ Object
Instance Method Details
#contact_of ⇒ Object
13 14 15 |
# File 'app/controllers/socializer/circles_controller.rb', line 13 def contact_of @circles = current_user.circles end |
#contacts ⇒ Object
9 10 11 |
# File 'app/controllers/socializer/circles_controller.rb', line 9 def contacts @circles = current_user.circles end |
#create ⇒ Object
29 30 31 32 33 |
# File 'app/controllers/socializer/circles_controller.rb', line 29 def create @circle = current_user.circles.build(params[:circle]) @circle.save! redirect_to circles_contacts_path end |
#destroy ⇒ Object
43 44 45 46 |
# File 'app/controllers/socializer/circles_controller.rb', line 43 def destroy @circle.destroy redirect_to circles_contacts_path end |
#edit ⇒ Object
35 36 |
# File 'app/controllers/socializer/circles_controller.rb', line 35 def edit end |
#find_people ⇒ Object
17 18 19 |
# File 'app/controllers/socializer/circles_controller.rb', line 17 def find_people @circles = current_user.circles end |
#index ⇒ Object
5 6 7 |
# File 'app/controllers/socializer/circles_controller.rb', line 5 def index @circles = current_user.circles end |
#new ⇒ Object
25 26 27 |
# File 'app/controllers/socializer/circles_controller.rb', line 25 def new @circle = Circle.new end |
#show ⇒ Object
21 22 23 |
# File 'app/controllers/socializer/circles_controller.rb', line 21 def show @users = Person.all end |
#update ⇒ Object
38 39 40 41 |
# File 'app/controllers/socializer/circles_controller.rb', line 38 def update @circle.update!(params[:circle]) redirect_to @circle end |