NoMethodError in HomeController#why_book_with_us

undefined method `photos' for nil:NilClass

Extracted source (around line #536):
534
535
536
537
538
539
              
@template = @super_hotel.template_why_book
#@photos_carrousel = @super_hotel.photos.where(template_why_book_id: @template.id)
@photos_carrousel = @template.photos.slider_why_us
end
def family_program

Rails.root: /var/www/beta_villagroup_rediseno

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"id_global"=>"10"}

Response

Headers:

None