search for: status_name

Displaying 2 results from an estimated 2 matches for "status_name".

2006 Jun 08
1
question about finding with :include versus nested dynamic finder (bad form? efficiency?)
...certain status, either "Accepted", "Rejected", "OnHold", "Declined", etc. I need to find all users with a status of "Accepted", so I''m doing the following: in User.rb: belongs_to :status def accepted_users status_id = Status.find_by_status_name(''Accepted'').id self. find_all_by_status_id(status_id) end I realize that I can also perform the above query by using something like: def accepted_users User.find(:all, :include => ''status'', :conditions => ''users.status_id = statuses.id an...
2007 Sep 03
13
Some basic questions
1. I have a text area in which I type on multiple lines..but when I display it, it prints whole text in one line..how can I solve that? Datatype is TEXT 2. I can see a list of all posts at ..post/ with index method but I want to see a particular post with ..post/[id] .. how can I do that? 3. I want my application to be completely secured and whatever page unlogged in user tries to open, it