Respected ppl ...
Im using twitter bootstrap and simple_form in my rails app ... i need to get the error messages in the input field instead of it being displayed on the side ... like the image shown below....
How do i do this ...
My form is as follows
<div class="row-fluid">
<div class="span6 offset3 centered">
<%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
<%= f.error_notification %>
<div class="form-inputs">
<%= f.input :name, required: true, autofocus: true, wrapper: :prepend, error: true, wrapper_html: { class: 'input-error' } do %>
<span class="add-on"><i class="ss-icon ss-user"></i></span>
<%= f.input_field :name, placeholder: "Full Name" %>
<% end %>
<%= f.input :email, required: true, required: true, wrapper: :prepend, error: true, wrapper_html: { class: 'input-error' } do %>
<span class="add-on"><i class="ss-icon ss-mail"></i></span>
<%= f.input_field :email, placeholder: "Email" %>
<% end %>
<%= f.submit "Sign up", class: "btn btn-primary sign" %>
</div>
<% end %>
</div>
</div>
Thanks ...