Home

map7 edited this page Sep 12, 2010 · 3 revisions
Clone this wiki locally

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