search for: all_categories

Displaying 4 results from an estimated 4 matches for "all_categories".

2006 Jan 23
5
Undefined method error
Hi everybody, Small problem. I get this error: undefined method `all_categories'' for BlogCategory:Class Code of BlogCategory class is: class BlogCategory < ActiveRecord::Base has_and_belongs_to_many :blog_posts validates_presence_of :name validates_uniqueness_of :name # Return all categories ordered by name def all_categories find :all, :order =&...
2007 Mar 06
9
bug or "feature"?
hi, i''m trying ferret, i''ve a model which has some records and two of them have a title with the word ''again'' (one or more time), so i''ve tried to do a search for ''again'', but i didn''t found anything...i''ve edited the title with ''test again'', searched for ''test'', and i''ve
2008 Feb 14
0
how to write a bloc in helper to check/uncheck box ?
Hi all I have a check box in form, and I would like to enable/disable it according to the value of the check box.. <% form_for(:query, @query,.... <%= f.check_box(:all_categories, :disabled => true, :onchange =>''javascript:all_categories();'') -%><%=l :All_categories %> I would like to have something like :disabled => { @query.all_categories.to_i == 1} which will be evaluated as true or false but I cannot write it , get into error.....
2006 Nov 04
13
Caching application data
Hi, say my application has a small 20 row information table in the database that stores names of airlines: "continental", "delta", united" , etc... These names will be used in various pages of the application for all the website users for different actions. They do not expect to change often. what I do now is - when a user logs in - these airline names are queried