On 6 May 2010 15:46, Joe <j...@dev-hq.co.uk> wrote:
> I've tried copying this code into the tutorials_controller:
>
> def self.ordered_by_position
>    find :all, :order => 'position'
>  end

If you're calling "Tutorial.ordered_by_position" that code needs to be
in the Tutorial model, not in a controller...

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to