Class: Peoplefinder::ReportedProfilesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/peoplefinder/reported_profiles_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



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

#newObject



5
6
7
# File 'app/controllers/peoplefinder/reported_profiles_controller.rb', line 5

def new
  @reported_profile = ReportedProfile.new
end