"I find that unless a field is explicitly specified in
parse_sort_param, the column heading shows up on the page as an active
link, but clicking on it does nothing (except to refresh the page and
return it to "default" sort order). "

I'm trying to get the sort to work as well, but neither the sort or
search work at all (the error message won't even show up when I search
something clearly not in the table). All that happens is a page
refresh when I click one of the column titles in hopes of sorting by
that column. I'm trying to create sortable table for my timesheets at
the timesheets index page. I pretty much followed the agility tutorial
to the letter, and the def index below is my best guess. even though i
specifically listed inside parse_sort_param, I'm not getting the
functionality of sort or search at all. Any words of wisdom?


def index
    @timesheet = find_instance
   @timesheets = Timesheet.apply_scopes(:search => [params
[:search], :title],
                                    :order_by  => parse_sort_param
(:client, :project, :user, :hours, :this, :created_at))
  end


<index-page>
 <collection: replace>
  <div id="table-plus">
   <table-plus with="&@timesheets" fields="client, project, user,
hours, this, created_at">
     <empty-message:><h3>No timesheets  match your criteria</h3></
empty-message:>
   </table-plus>
  </div>
 </collection:>
</index-page>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to