Topic: Password for scaffold

Hello,

Is it possible to create a parameter of type "password" or a type of the same kind, using the command "scaffold"?

Thanks

Marc

Re: Password for scaffold

Rails scaffold command

rails g scaffold <options>

will generate a model, a controller with corresponding 4 views + partial, tests. Scaffold will not

create a parameter of type "password".

If you want to add a new attribute to your model, just create a new migration that will add it and then just run. See more details at Rails Guides for Migrations.

Last edited by Javix (2012-12-10 06:05:38)

Re: Password for scaffold

Hello Javix,

Sorry, when I said command "scaffold" I mean "rails generate scaffold <options>".

The thing is, is it possible to add a parameter to database (mysql) which will be automatically encrypted? (using: "rails generate scaffold <option>")

Thanks

Re: Password for scaffold

See a R.Bates screencast which explains the basics for that: http://railscasts.com/episodes/270-auth … =asciicast