Displaying 3 results from an estimated 3 matches for "hotel_id".
2006 Jun 26
2
Prototype Ajax event handlers
...ion updateCalendar(today, id){
new Ajax.Updater("calendars", "calendar.inc.php",
{asynchronous: true,
onCreate: function(){ showBusy },
onComplete: function(){ hideBusy },
method: "get",
parameters: "today=" + today +"&hotel_id=" + "<?=$_SESSION[hotel_id]?>"
});
}
function showBusy(){
new Effect.Appear(''busy'',{duration:0.5,queue:''end''});
}
function hideBusy(){
new Effect.Fade(''busy'',{duration:0.5,queue:''end''});
}
No...
2012 Apr 23
1
Searching and returning arrays
...rch", :name => nil%>
(...)
<% @hotels.each do |hotel|%>
<h2> <%= link_to hotel.name, 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].p...
2005 Jun 16
3
PostgreSQL Scaffold Doesn't Insert PK?
I am new to Rails and Ruby. I''ve been a WebObjects developer for a few years
and before that J2EE (shudder). I wanted to try RoR so I am porting an
existing Web app.
I am running the latest release on Tiger and PG8.
Right now my single table has three attributes:
id | integer | not null
hotel_name | character varying(255) | not null
hotel_location |