search for: bmg2x

Displaying 4 results from an estimated 4 matches for "bmg2x".

Did you mean: bmax
2006 Mar 10
5
case insensitive search
I am having trouble with a simple gallery search. I type in a segment of the address and i only seem to be getting results if I use the correct case. This is in my Gallery controller: def search @gallery = Gallery.find(:all, :include => :property, :conditions => "address LIKE ''%#{@params[:keywords]}%''") end On a different note: I am having
2006 Mar 13
2
error message for empty object
I want to have some sort of message to be shown when I have an empty object. For example when I click on a properties'' gallery and their are no photos, I want a simple "gallery is empty" I have managed to do this in the view by doing a crude code block: <% unless @object.empty? %> (show gallery) <% else %> gallery is empty <% end %> I am sure rails has a
2006 Jan 18
0
access application helper within controller
Ok, this has probably been asked ad nauseam, could somebody please refresh my memory?
2006 Jan 18
1
alias for *table*_id
I have a table contacts, in another controller I refer to a particular contact_id as transfer_attorney_id or electrical_inspector_id - how do I create the necessary alias in the Contacts model?