Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##I want the named_scope_first to return the first Article in the Database
- class Article < ActiveRecord::Base
- named_scope_first :test, :conditions => ["id > ?",0]
- named_scope :test2, :conditions => ["id < ?",999953125641]
- end
Add Comment
Please, Sign In to add comment