Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
App code from the Screencast on building a REST API
Ruby JavaScript CoffeeScript
Branch: master

Moved helper_method() call out of private scope

Moved the helper_method call in UsersController out of the private scope. It's easier to spot if it's at the top of the class file
latest commit 52245c8741
@Bodacious authored
Failed to load latest commit information.
app Moved helper_method() call out of private scope
config first commit
db first commit
script first commit
.gitignore first commit
Gemfile first commit
Gemfile.lock first commit
README.md first commit
Rakefile first commit
config.ru first commit

README.md

Building A REST API in Rails 3

This app is the one built in this short screencast on building a REST API in Rails 3

I've DRYed up the controller code a little more, the extra helper methods are more in line with the way I prefer to code.

Note, I've removed the references to the instance variables @user and @users in the views. Instead, they're accessed via helper methods!

Something went wrong with that request. Please try again.