Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Nadeen Southgate
752 PointsTreebook: Sign up form has no fields for first name, last name and profile name.
Treebook: Sign up form has no fields for first name, last name and profile name. How do i change the form?
Sander Kaasa
632 PointsI have the same problem.
1 Answer
Unsubscribed User
8,167 PointsNot sure if you are this far in the Ruby course, but my Registration new.html form looks something like this..
<div class="row">
<div class="span4 offset4">
<%= simple_form_for(resource, :as => resource_name, :url => registration_path(resource_name), html: {class: "well"}) do |f| %>
<%= devise_error_messages! %>
<fieldset>
<legend>Sign Up</legend>
<%= f.input :first_name %>
<%= f.input :last_name %>
<%= f.input :profile_name %>
<%= f.input :email, :autofocus => true %>
<%= f.input :password %>
<%= f.input :password_confirmation %>
<div><%= f.button :submit, "Sign up", class: "btn-primary" %></div>
</fieldset>
<% end %>
<%= render "devise/shared/links" %>
</div> </div>
this form is using the simple_form gem...If you are not to this part of the badge I would just ignore my post.
Take into account I've added the offset4 class to center the form to the middle of the page and I delete the span8 they put in that had the "sign in secure" text
Henri Viiralt
9,092 PointsHenri Viiralt
9,092 PointsDid you manage to sort this out? I've run into the very same problem.