Rails and REST Best Practices

Rails

Here are some of my best practices when writing RESTful Rails applications.

Rules 

more...

Rails 2.0 and Resources

Rails

Rails 2.0 is taking a little time to get used to. Does everything have to be a resource? Is it best practice if they are? How do I handle other GET's if the map.resource is looking for ID's as the second paramater passed to a resource (e.g., /users/login)?

All of these are questions I've been asking as I learn the latest Rails release and the benefits of REST. A lot of functionality has remained in the release, the biggest gotcha I would say are the routes. Any method you want to create needs to be mapped in the routes so that the default map.resources pattern doesn't catch it.

Page 1