Topic: Question about scaffold command

Hi everyone,

I am trying to build a rails app with a signing/signup function i understand how the following command works for instances:

"rails generate scaffold Signin username:string password:string"

But is there different type for password like with html forms where the type is type="password" to not show the password while typing, or is it just string as i have put in the example and the other things you do within the view file and under lining code to say encrypt the password and so on. I just wondered if where was a certain type for using with a password data field.


Last edited by paulie (2012-04-08 10:38:40)

Re: Question about scaffold command

That only comes into play in the view,  as far as the database is concerned,  a password is just text.  When you make a form asking for a password is when you take special precautions, i.e.

<%= f.password_field :password %>

Joe got a job, on the day shift, at the Utility Muffin Research Kitchen, arrogantly twisting the sterile canvas snout of a fully charged icing anointment utensil.

Re: Question about scaffold command

Thank you very much Brad !:D