search for: flash_warn

Displaying 2 results from an estimated 2 matches for "flash_warn".

Did you mean: flash_cart
2006 Aug 07
1
Escape ''&'' in text_field_with_auto_complete
...company_name''))") + "}" %> controller: def auto_complete_for_supplier_company_name @suppliers = Supplier.find(:all, :conditions => ["company_name LIKE ?", params[:supplier][:company_name] + ''%'']) if @suppliers.length == 0 flash_warning(:now, ''No Suppliers found with company name starting with '' + params[:supplier][:company_name].to_s + ''!'') render :partial => ''no_values'' else render :partial => "supplier_names", :layout => false...
2006 May 02
2
flash not shown
I am using the following code (inspired by one of the books) to check if the user''s session should have timed out. # Check to see if the user has been inactive for longer than the # expiry period. If they have, reset the session. def check_timeout if session[:expires_at] != nil @time_left = (session[:expires_at] - Time.now).to_i unless @time_left > 0