Forum: Ruby on Rails Help with acl system

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
D3760253015655d7441a4206c762934d?d=identicon&s=25 Hugo Mag (migrate)
on 2007-01-23 10:43
Hello all,
I've installed the acl plugin and all works fine.
Now I added a new page where the user can change it's name and e-mail
but it does not work. When I try to save there are always validation
errors because the password and password_confirmation because they
aren't present in the form.

Can anyone tell me how to correct this?
Here is the code:


<label for="user_name">Name:</label><%= text_field "user", "name", :size
=> 30 %>
<label for="user_email">Email:</label><%= text_field "user", "email",
:size => 30 %>

<%= submit_tag "Change", { 'name' => 'change'} %>


@user = User.find(user_id) = @params["user"]["name"] = @params["user"]["email"]
   # redirect

Model User:

validates_presence_of :password, :password_confirmation
validates_length_of :password, :within => 5..40
validates_confirmation_of :password

This topic is locked and can not be replied to.