Class: Peoplefinder::ReportedProfilesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Peoplefinder::ReportedProfilesController
- Defined in:
- app/controllers/peoplefinder/reported_profiles_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/controllers/peoplefinder/reported_profiles_controller.rb', line 9 def create init_reported_profile if @reported_profile.save ReminderMailer.reported_profile(@reported_profile).deliver notice :message_sent, person: @person redirect_to person_path(@person) else render action: :new end end |
#new ⇒ Object
5 6 7 |
# File 'app/controllers/peoplefinder/reported_profiles_controller.rb', line 5 def new @reported_profile = ReportedProfile.new end |