I can get the form in another view with the code below.

But when insert the data and submit, the user is not recorded in database


<%= form_for(User.new, :as => :user, :url => registration_path(:user)) do
|f| %>


  <p><%= f.label :email %><br />
  <%= f.email_field :email %></p>


  <p><%= f.label :password %><br />
  <%= f.password_field :password %></p>

  <p><%= f.label :password_confirmation %><br />
  <%= f.password_field :password_confirmation %></p>

  <p><%= f.submit "Sign up" %></p>
<% end %>


On Tue, Jun 14, 2011 at 4:37 AM, Colin Law <[email protected]> wrote:

> On 14 June 2011 03:00, Fernando Aureliano <[email protected]>
> wrote:
> > The form appears, I put the data and go!
> > Dont show any erros, but the data are not recorded
>
> Have a look in development.log to check that the data are being posted
> correctly and it is going to the correct action.  Then if all looks ok
> use ruby-debug to break into your code and see what is going on.  Have
>  a look at the Rails Guide on debugging to find how to do this.
>
> Colin
>
> --
> 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.
>
>


-- 
*Fernando Aureliano*

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