le 20/03/2009 12:34, Chris Davies nous a dit:
>
> report.cgi?datefrom=20090101;dateto=20090320;category=sales
>
>
> How could/should I represent a URI for this kind of query using the
> Rails paradigm?
My own understanding of REST concepts is : be CRUD. And being CRUD don't
prevent you from using parameters.
So, viewing sales report is a show action
/reports/sales?datefrom=20090101;dateto=20090320
In that case, sales is the :id (overiding usual rails integer ID)
Being CRUD, you'll end with more controllers with less actions and
theses actions will most of the time be the classical 7 : index, show,
new, create, edit, update, delete