just minimized everything down to:
<% form_for (@user) do |f| -%>

  <%= f.error_messages %>
    <p><label for="login">Login</label><br/>
    <%= f.text_field :login, :class=>'input_signup' %></p>

    <p><label for="email">Email</label><br/>
    <%= f.text_field :email, :class=>'input_signup' %></p>

    <p><label for="password">Password</label><br/>
    <%= f.password_field :password, :class=>'input_signup' %></p>

    <p><label for="password_confirmation">Confirm Password</label><br/>
    <%= f.password_field :password_confirmation, :class=>'input_signup'
%></p>
<p><%= submit_tag 'Sign up'  %></p>
<% end -%>

  def create
    @user = User.new(params[:user])
    @user.save!

    if @user.errors.empty?
        flash[:notice] = "Thanks for signing up! Please check your email to
activate your account."
    else
      p @user.errors
      flash[:error] [email protected]
      flash[:notice] = "Error SignUp - pls try again - Support has been
contacted!"
      redirect_to signup_url
    end
  end


result is still:

ActiveRecord::RecordInvalid in UsersController#create

Validation failed: Password is too short (minimum is 4 characters)



validation are on login, email & password


thx


On Mon, Oct 25, 2010 at 11:31 AM, radhames brito <[email protected]> wrote:

>
> 31: <body class="bodybckgrnd">
>> 32: <% message.each do |name, msg| %>
>> 33:  <%= content_tag :div, msg, :id => "flash_#{name}" %>
>> 34: <% end %>
>>
>
>
> sorry i strackted that from a partial it should look like this
>
>
> <% flash.each do |name, msg| %>
>
>   <%= content_tag :div, msg, :id => "flash_#{name}" %>
>
> --
> 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]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>

-- 
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