search for: bmgz

Displaying 7 results from an estimated 7 matches for "bmgz".

Did you mean: bigz
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 Mar 13
1
Styling pagination links ?
Hello, How to style the pagination links ? I simply try to set the number of the current page to another color. But I have the "..." also colored. Paginator have options to style ? Thanks
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?
2006 Mar 14
5
GROUP BY and SUM
I have orders, order_items, and products. I want to collate several orders so that I can get a SUM of quantities ordered for each product etc. Can I say something like (the below gives an error on :sum, and ignores :group) OrderItem.find(:all, :sum => ''quantity'', :group => ''product_id'', :include => [:order, :product]) I want to get back a
2006 Feb 26
9
State of the Breezy
What''s the current state of Rails installation on a fresh Ubuntu Breezy? I''ve just set up a laptop with a fresh installation, and tried to install ruby et al, and got nowhere fast. The default ruby is 1.8.3, and compiling the source for 1.8.4 leaves the rubygems setup.rb breaking unable to find zlib (and yes, I have checked for zlib1g-dev and readline). Is there a known
2006 Jan 18
0
access application helper within controller
Ok, this has probably been asked ad nauseam, could somebody please refresh my memory?