Skip to content
Advertisement

Tag: sqlite3-ruby

Ruby on Rails Database Query with Ruby Variable

This is the current code for my query.. I want to be able to add something like But everything I try doesn’t seem to work due to the “property_id” portion. I’ve tried concatenating, different assignments, etc. I feel dumb. SOS. Thank you ahead of time. Also, when I add.. Which “hotelid1” is an existing hotel_id in the table. It works

Advertisement