chore: prepare for deployment
This commit is contained in:
parent
cb78f82d6d
commit
08c08a402c
8 changed files with 83 additions and 2 deletions
|
@ -14,7 +14,11 @@ class InstanceController < ApplicationController
|
|||
|
||||
def show
|
||||
@instance = Instance.includes(:pops, :fairies).find_by(public_id: show_instance_params)
|
||||
@forecast = Weather.forecast(@instance.zone.to_sym)
|
||||
if @instance
|
||||
@forecast = Weather.forecast(@instance.zone.to_sym)
|
||||
else
|
||||
redirect_to root_path
|
||||
end
|
||||
end
|
||||
|
||||
def pop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue