railstutorial/sample_app — Issue #8: user url
Author: rexpraseo
Created: 2011-12-29 17:28:54+00:00
State: open

ther url for user 1 is localhost:3000/users/1....this is tempting to type in say 2, and it will take you to that page, which is good.

But type in 0, or a number above the number of users in the database and you get and ActiveRecord::RecordNotFound error.

How do you redirect to a different page, preferably the users_index_page.