I'm currently working on a Ruby on Rails project and I'm working with a Form Helper, which I'm currently struggling with.
- I'm looking to learn the best method to input a password confirmation into a signup form using Rails 4.
- Upon running the View's code from below there are labels for each field. How do I remove these and just leave the input fields?
How do you input icons for fields inside the <%= %> tags?
<div class="col-md-6" id="signup_form"> <%= simple_form_for(resource, :as => resource_name, :url => registration_path(resource_name), :format => :js, :remote => true) do |f| %> <%= f.error_notification %> <%= f.input :name, :placeholder => "Name" %> <%= f.input :email, :placeholder => "Email Address" %> <%= f.input :password, :placeholder => "Password" %> <%= f.input :password_confirm, :placeholder=> "Confirm Password" %> <div class="form-actions" style="margin-bottom: 15px"> <%= f.button :submit, "Create Account", :class => "btn btn-primary btn-custom-red" %> </div> <% end %> </div>
Thanks for your time.