Sorry. I have a list that contains 1000 records, but only shows 25 per page. I would like to put a link on the page to send all 1000 records to another controller so I can run a report on all the records.
When i override the list.html.erb or _list.html.erb files the instance var @records only contains the 25 records showing on the current page. Is there an instance variable that contains all 1000 records, or is there a method in my controller to build a link on the table to pass all 1000 records. Or... Is there a way to assign the finder conditions that AS uses to my own variable so I can reuse it. Basically I would like to do something like this: link_to "Report", :controller => 'reports', :action => 'build_report', :records => @records I would like @records to point to all 1000 records, but right now it only has the 25 records from the current page being diplayed in the list. Thanks -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en.
