I'm doing some editing on an existing rails app and this view; _tour_listing.html.erb looks like this:
<% if @upcoming_tour_requests.blank? %> <p>No upcoming tour requests.</p> <% else %> <table> <tr> <th>Group Name</th> <th>Contact Name</th> <th>Status</th> <th>Date</th> <th>Actions</th> </tr> <%= render :partial => "tour_listing", :collection => @upcoming_tour_requests %> </table> <% end %> <h3>Other Active Tour Requests</h3> <p>Tour requests not scheduled to take place within the next two weeks, but still having a status of initial, received, or confirmed:</p> <% if @tour_requests.blank? %> <p>No other active tour requests.</p> <% else %> <table> <tr> <th>Group Name</th> <th>Contact Name</th> <th>Status</th> <th>Date</th> <th>Actions</th> </tr> <%= render :partial => "tour_listing", :collection => @tour_requests %> </table> <% end %> My question is with the render :partial => etc... line. I need to find away to sort the data that is getting spit out by a specific field, how would I do that? -- 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 -~----------~----~----~----~------~----~------~--~---

