Class: LoveMonster::PeopleController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- LoveMonster::PeopleController
- Defined in:
- app/controllers/love_monster/people_controller.rb
Instance Method Summary collapse
-
#show ⇒ Object
GET /person/:email.
Instance Method Details
#show ⇒ Object
GET /person/:email
6 7 8 9 10 11 |
# File 'app/controllers/love_monster/people_controller.rb', line 6 def show @person = Person.find_by_email params[:email] @received = @person.loves_received @sent = @person.loves_sent @liked = @person.likes.includes([:love]).map(&:love) end |