add rails flash messages that dismiss after 5 seconds

This commit is contained in:
Zachary Chai
2017-03-14 14:16:14 -04:00
parent b0512a0569
commit b2031c97a3
4 changed files with 21 additions and 3 deletions

View File

@ -45,7 +45,7 @@ Rails.application.routes.draw do
# routes shared between meetings and rooms
get '/(:room_id)/:id/join', to: 'bbb#join', defaults: {room_id: nil, format: 'json'}
get '/(:room_id)/:id', to: 'landing#resource', as: :meeting_room, defaults: {room_id: nil}, :constraints => {:id => /[^\/]+/}
get '/(:room_id)/:id', to: 'landing#resource', as: :meeting_room, defaults: {room_id: nil}, :constraints => {:id => /[^\/]+/} # override the constraint to allow '.' and disallow '/'
end
root to: 'landing#index', :resource => 'meetings'