I have a controller to sort by time...
def index
@shows = Show.all(:all, :order => 'time')
respond_to do |format|
format.html
format.xml { render :xml => @shows }
end
end
...which works fine when you view the 'shows' index.html.erb.
But I made a partial called _show_list.html.erb (which is 'shows'
index.html.erb) but it doesn't sort the listings by time.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---