I would like to remove this logic:
Suitcase::Hotel.find(id: hotel.id).images.first.url
from view.
I dont have model Hotel. I get this url via API using Suitcase gem.
I would like to remove this logic:
Suitcase::Hotel.find(id: hotel.id).images.first.url
from view.
I dont have model Hotel. I get this url via API using Suitcase gem.
Problem is because hotel is from @hotels =
Suitcase::Hotel.find(location:
“%#{headed}%”) and API recevie me images only if do
Suitcase::Hotel.find(id:
hotel.id)
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs