Displaying 2 results from an estimated 2 matches for "m000754".
Did you mean:
m000574
2006 Mar 08
1
Limiting a user''s view of data
I currently have two models. One holds users (username, password) and
one "data" (title, message, etc.). I can handle login via filters I
believe, courtesy of the Rails Recipes book.
However, I''d like to limit what a user can see of the data. To do this,
I added another table to the database with user_id and data_id fields.
Now I''m a little stuck, as I
2006 Mar 13
8
Nested find(:all, :include => ) statements
Is there a way for me to do:
OrderItem.find(:all, :include => [:user, :product => [:supplier]]
So I don''t have a supplier_id on my order_item, but have it on my
product, which is part of order_item.
Joerg
--
Posted via http://www.ruby-forum.com/.