Displaying 4 results from an estimated 4 matches for "some_categori".
Did you mean:
some_category
2005 Mar 06
4
has_many and order
Hi all,
if I have a has_many and belongs_to relations like this
category has many articles
article belongs to category
is there a way I can specify the order of articles when pulling them up
with
@some_category.articles
?
Many thanks in advance!
-- Nicky
2006 Jan 09
3
Selecting a subset of a table with DRY
Hello,
I have table called ''listings.'' There are a certain combination of
properties which make a listing viewable (e.g., it is confirmed, has
been authorized, hasn''t expired, etc.). Each listing has one and only
one category.
I want to be able to do things like Listing.find_viewable(...) and
Category.find(...).viewable_listings, but I see no way to do this
2006 May 08
2
Queries with has_and_belongs_to_many relationship
I was able to create a has_and_belongs_to_many relationship for my app,
but now I''m not too sure how to write queries for it.
Basically, I have a table ''courses'' that has_and_belongs_to_many
''categories'' and vice versa
So I''m trying to figure out how I would find only the courses that
belong to a category that I specify.
Let''s
2006 May 24
22
Components going out of style?
I see in the new Agile Rails 2nd edition that components are going out
of style?
Is this so? has anybody abandoned the idea of components for helpers?
Specifically I''m considering a menu sytem for a website that depends
heavily on the users permissions to decide which menu options a user
would need to see. I thought that components, since they have the logic
in the controller and