How do I order an instance variable using two columns?
I want to order after reel_order and reel_online which as a boolean and should be true.
I have tried this:
<% @movies.find(:all, :order => "reel_order, where(reel_online) = 1").each do |movie| %>
Is it possiable what activerecord or how to order this when using MySQL as database. I also want to know how to do it with a postgreSQL database.
UPDATE:
I am using this in my loop:
<% @movies.find(:all, :order => "reel_order, reel_online DESC").each do |movie| %>

The result is that the @movie is not ordered after reel_online. The reel_online is true when the eye is open. I want the open eyes to be at the top as expected.
I think you mixed the order of the columns. It should be