I think my problem is that Rails is not seeing the private method “def
author_age” that is holding the result of the query.
Do I suppose to put this in the Controller and not in the model?
How does the object @results get known to Rails?
Here is my code:
class Author < ActiveRecord::Base
@results = Author.find :all, :conditions => [“age = ?”,
I have this on view\authors\show.html
|<%=h result.name %>||<%=h result.age %>|