Well I think I fixed it because I see my data saved to the DB table. I
just added this:

attr_accessible :username, :email, :password, :password_confirmation

but I got a controller error:

undefined local variable or method `root_url' for #<UsersController:
0x477b998>

will try to figure out.

Thanks to all that replied and helped



On Oct 27, 1:14 pm, Frederick Cheung <[email protected]>
wrote:
> On 27 Oct 2009, at 17:13, about2flip wrote:
>
>
>
> > Would it be because of this line in my model:
>
> > attr_accessible :username, :email, :password
>
> yes - this means that
>
> User.create(params[:user]) won't set username, email orpassword.
>
> Fred
>
> > thanks
>
> > On Oct 27, 12:37 pm, Marnen Laibow-Koser <rails-mailing-l...@andreas-
> > s.net> wrote:
> >> about2flip wrote:
> >>> I tried what you suggested, and now it's telling me thatpasswordis
> >>> tooshortminimum 1. I am putting in 4,5,6 characters. I also put in
> >>> this:
>
> >>> merge_validates_confirmation_of_password_field_options
>
> >>> What are the options, I don't see them in rdoc.
>
> >> They're in the rdoc.  Check out the various
> >> ActsAsAuthentic::[whatever]::Config modules.
>
> >>> Thanks.
>
> >> Best,
> >> --
> >> Marnen Laibow-Koserhttp://www.marnen.org
> >> [email protected]
> >> --
> >> Posted viahttp://www.ruby-forum.com/.
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to