When I'm saying:
%p= item.price + " dollars"
I'm getting
50  ;dollars
instead of having non-breakable space symbol.
How to insert this and another special symbols using HAML ?
How about
%p= item.price + " dollars".html_safe
How do I generate a random number between 0 and n?
I wrongly named a column hased_password instead of hashed_password. How do I update the database schema, using migration to rename this column?
I have a Users model which needs an :email column (I forgot to add that column during the initial scaffold). I opened the migration file and added t.string :email, did rake db:migrate, and got a NoMethodError. Then I …