# Newbie: setting up restful\_authentication

**URL:** <https://www.ruby-forum.com/t/newbie-setting-up-restful-authentication/123716>\
**Category:** Rails\
**Created:** [December 19, 2007, 11:49pm UTC](https://www.ruby-forum.com/t/newbie-setting-up-restful-authentication/123716 "2007-12-19T23:49:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cskidmore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bb73d2/32.png) [@cskidmore](https://www.ruby-forum.com/u/cskidmore)\
**Post date:** [December 19, 2007, 11:49pm UTC](https://www.ruby-forum.com/t/newbie-setting-up-restful-authentication/123716/1 "2007-12-19T23:49:44Z")

</div>

I installed the plug-in for restful\_authentication and ran the  
migration. The table exists, but when I try creating an account using:

[http://localhost:3000/users/new](http://localhost:3000/users/new)

no record gets inserted into the users table. I checked the log, but  
there don’t appear to any messages saying it attempted to post and an  
error occurred.

If there’s a tutorial out there showing an example of setting it up and  
using it, I’ll figure this out on my own. Does anyone know where I can  
find one?

---

<div class="post-metadata">

**Author:** ![cskidmore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bb73d2/32.png) [@cskidmore](https://www.ruby-forum.com/u/cskidmore)\
**Post date:** [December 19, 2007, 11:52pm UTC](https://www.ruby-forum.com/t/newbie-setting-up-restful-authentication/123716/2 "2007-12-19T23:52:41Z")

</div>

I thought /users/new was the page to begin to create a new user. It  
shows  
you the form for a user. Then it posts to /users which should then  
create  
users. Unless you’ve forgotten to set up map.resources :users in your  
config/routes.rb I see no other reason for it not to work.

On Dec 20, 2007 9:19 AM, Cody S.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> ## If there’s a tutorial out there showing an example of setting it up and using it, I’ll figure this out on my own. Does anyone know where I can find one?
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
Ryan B.

> **[frozenplague.net](http://www.frozenplague.net)**
>
> This domain may be for sale!

---

<div class="post-metadata">

**Author:** ![cskidmore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bb73d2/32.png) [@cskidmore](https://www.ruby-forum.com/u/cskidmore)\
**Post date:** [December 20, 2007, 2:00am UTC](https://www.ruby-forum.com/t/newbie-setting-up-restful-authentication/123716/3 "2007-12-20T02:00:15Z")

</div>

Check out Ryan B.’ Railscasts on restful\_authentication

> **[\#67 restful\_authentication - RailsCasts](http://railscasts.com/episodes/67-restful-authentication)**
>
> Short Ruby on Rails screencasts containing tips, tricks and tutorials. Great for both novice and experienced web developers.

Good luck.  
Mike

---

<div class="post-metadata">

**Author:** ![cskidmore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bb73d2/32.png) [@cskidmore](https://www.ruby-forum.com/u/cskidmore)\
**Post date:** [December 20, 2007, 2:50am UTC](https://www.ruby-forum.com/t/newbie-setting-up-restful-authentication/123716/4 "2007-12-20T02:50:39Z")

</div>

Ryan B. wrote:

> Unless you’ve forgotten to set up map.resources :users in your  
> config/routes.rb I see no other reason for it not to work.

I used Rick Olsen’s instructions in the readme to install the plugin.  
Setting up the route was a part of that, but I didn’t setup any  
additional views or controllers other than those created directly by the  
controller. I’ll use the video cast Mike suggestion before asking  
anymore about this though.

Thanks guys.
