Skip to Content
Rails Refactoring to Resources: Using CRUD and REST in Your Rails Application
book

Rails Refactoring to Resources: Using CRUD and REST in Your Rails Application

by Trotter Cashion
April 2007
Intermediate to advanced content levelIntermediate to advanced
74 pages
1h 7m
English
Addison-Wesley Professional

Overview

Since David Heinemeier Hansson’s keynote speech at RailsConf 2006 and the release of Rails 1.2 in early 2007, Representational State Transfer, better known as REST, has taken the Rails world by storm. If you’re new to REST, this short cut will help you decide which parts of the REST paradigm you want to introduce to your application. If you’re a developer with more RESTful experience, this short cut will introduce you to some refactorings that will give your application a cleaner, leaner code base, while also serving as a reference to much of the functionality REST has brought to Rails.

Section 1: What This Short Cut Covers 3

Section 2: What Is REST? 6

Section 3: Refactorings 10

Section 4: RESTful Controllers 31

Section 5: RESTful Routes 48

Section 6: RESTful Views 54

Section 7: RESTful Tests 59

Section 8: RESTful Authentication 61

Section 9: Consuming RESTful APIs 63

Resources 72

About the Author 73

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn Rails 6: Accelerated Web Development with Ruby on Rails

Learn Rails 6: Accelerated Web Development with Ruby on Rails

Adam Notodikromo
Beginning Rails 6: From Novice to Professional

Beginning Rails 6: From Novice to Professional

Brady Somerville, Adam Gamble, Cloves Carneiro Jr., Rida Al Barazi

Publisher Resources

ISBN: 9780321501745