Displaying 3 results from an estimated 3 matches for "xiheng".
2006 Feb 07
7
What happens to manuals.rubyonrails.com?
Hi guys,
does anyone know what happened to the manuals site? I have not been
able to connect to http://manuals.rubyonrails.com for two days (I
started reading all about RoR yesterday and finished most of the
tutorials i could gather, and really enjoyed playing with the rails).
TIA!
-xiheng
--
Posted with http://DevLists.com. Sign up and save your time!
2006 Feb 10
4
How to do a find with conditions that contain an OR
Hi, I''m trying to do a find with a condition that has an OR on the same
column. Say I only want to use find() but not find_by_sql(). I reduced
my problems into the following:
values = []
... # filling up values from params
Order.find(:all,
:conditions => ["(action = ? OR action = ?) AND price = ?",
values]
For example I
2006 Feb 13
1
another simple question: per_page in pagination
Hi,
Why can''t I use a variable to specify the :per_page attribute when using
the most basic form of pagination? (if I use a hardcode number, it
runs) What did I do? Thx.
My code:
def list_orders
page_size = 20
...
order_pages, @orders = paginate(:orders, :per_page => page_size)
end
My Errors:
undefined method `>'' for false:FalseClass
RAILS_ROOT: