This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Alexander Lang (author)
Tue Apr 22 02:06:16 -0700 2008
commit 40201b24606610377f61e45c90830fa7b98e5e7e
tree 3fc5b741383c1468887915cba5011ee32f931592
parent 9c94433894eca782ef0ac53bc5eb1b8d5c57a214
tree 3fc5b741383c1468887915cba5011ee32f931592
parent 9c94433894eca782ef0ac53bc5eb1b8d5c57a214
| name | age | message | |
|---|---|---|---|
| |
INSTALL | ||
| |
MIT-LICENSE | ||
| |
README | ||
| |
generators/ | ||
| |
init.rb | ||
| |
install.rb | ||
| |
lib/ | ||
| |
spec/ | ||
| |
views/ |
README
== dead simple reports == this rails plugin allows you to easily create and view arbitrary reports of your database tables. it therefore creates a reports controller with views and a report model in your application. to create a report you simply create an instance of Report. it then appears in the list of reports where you can view it either as html, csv or xls table. === to create a report === Report.create! :name => 'My Ruby Report', :kind => 'code', :code => 'User.find(:all).map(:&name)' This will generate a report that lists all user's names. Alternatively you can create a sql report: Report.create! :name => 'My SQL Report', :kind => 'sql', :code => 'SELECT name FROM users' to view the list of reports just go to http://localhost:3000/reports === customizing the views === to customzie the views you can simply edit the files under app/views/reports in your application. == customizing the controller == to customize the controller you can add code to the app/controllers/reports_controller file generated in your application. === contact === for hints, questions etc. please email alex[at]upstream-berlin.com








