Style
This commit is contained in:
parent
2e692f7ea5
commit
01086813af
37 changed files with 221 additions and 190 deletions
|
|
@ -9,7 +9,8 @@ class TicketsController < ApplicationController
|
|||
|
||||
def check_load_resource
|
||||
if @tickets.empty?
|
||||
redirect_to root_path, notice: "There are no tickets available for #{@conference.title}!"
|
||||
flash[:notice] = "There are no tickets available for #{@conference.title}!"
|
||||
redirect_to root_path
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue