search for: 24hroom

Displaying 1 result from an estimated 1 matches for "24hroom".

2012 Apr 23
1
Searching and returning arrays
...e, hotel %> </h2> My hotels and facilities are a has_many_and_belongs_to relationship with everything working. The facilities_hotels table is created with the facility_id and hotel_id collums, and the facilities table has for columns a facility_id and description(which is for e.g. pool, 24hroom service etc) The issue is in my model: def self.search(params) if params arel = where(''#searches for names/location/rating'') if params[:fc].present? arel=arel.joins(''INNER JOIN facilities_hotels ON hotels.id=facilities_hotels.hotel_id...