search for: find_ordered

Displaying 3 results from an estimated 3 matches for "find_ordered".

Did you mean: find_order
2006 Jan 31
2
Setting a default order for a model?
Hi, I''m using a room model throughout my code. I keep doing the following: @rooms = Room.find(:all, :order => ''buildings.name, room_number'', :include => :building) I have to copy this into several of my controllers and I feel that I''m violating the DRY principle. Can I set this as the default order in my model? If so, how would I do that? Thanks,
2008 Jul 03
0
Error on Autotest start
I have been using autotest/zentest 3.5.0 with my rails 2.0.2 and rspec. I upgraded my gems and got 3.9.3 and had a problem. I went back to 3.5.0 and it worked. I stayed there until moving to rails 2.1. I again updated my gems and got 3.10. This one had the same problem. This time I need to figure out what is wrong. Here is what I get:
2006 Jul 11
0
using acts_as_list storing the information in a session
Hi, I have an order model that i am storing in a session, that is not currently in the database. I am updating the page using ajax, and I do not want to store the order in the database untill it is completely filled out. I have order_items that I am adding to the order, and I have used the acts_as_list within the order_item model. My problem comes when i try and rearrange the order_items