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


Formatting simple form

I've been doing some formatting for the Devise Registration 'Edit' view. There are hints, but when I change the filed to .input I can't work out how to display the 'hint' text below the label, but above the filed input.

Some advise on how to do that would be great.

Additionally I tried using f.input :password, :hint => 'XX' but couldn't work out how to display it as above.

Finally I have looked at using f.input :email, :placeholder =>'xxx' which highlighted the need to make the filed wider. I couldn't get thios working - I tried using a class, but clearly doing something wrong as it's not working. The code is pasted below.

<div><%= f.input :password, :class=>"input-xxlarge", :placeholder => 'Leave blank if you dont want to change it', :autocomplete => "off" %> <br />

2 Answers

Jason Seifer
Jason Seifer
Treehouse Guest Teacher

Hey Chris, using "hint" should be correct. Double check everything is set up correctly by following along in the simple_form documentation - https://github.com/plataformatec/simple_form.

HI Jason, when I use 'Hint' it displays it after the field, not between the field and the label. Are you saying it should display it between the label and the field?