Class: NippoCore::ReportsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/nippo_core/reports_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



17
18
19
20
21
22
23
# File 'app/controllers/nippo_core/reports_controller.rb', line 17

def create
  if @report.save
    redirect_to group_reports_path(group_id: @group.id)
  else
    render 'new', status: 400
  end
end

#indexObject



7
8
9
# File 'app/controllers/nippo_core/reports_controller.rb', line 7

def index
  @reports = @group.reports
end

#newObject



14
15
# File 'app/controllers/nippo_core/reports_controller.rb', line 14

def new
end

#showObject



11
12
# File 'app/controllers/nippo_core/reports_controller.rb', line 11

def show
end