public
Description: Not scaffolding. Resourcing. Creates extremely customizable resource controllers with one line of code.
Home | Edit | New

Home

Welcome to the resource_this wiki!

Generator Examples

Create a User resource with name and date of birth.
script/generate resource_this User name:string dob:date

Pagination examples

In your controller put
resource_this :will_paginate => true

In your view put
<%= will_paginate @users %>

There doesn’t seem to be a way to limit the number of items per page.

Overriding Examples

Last edited by map7, Wed Sep 09 19:30:00 -0700 2009
Home | Edit | New
Versions: