16
Jul 13

Editing Devise Views – Attribute accessibility

Since my devise views did not include the extra fields I added to migration (first_name, last_name, profile_name) I had to edit my views/devise/registrations/* files to include the new fields. I thought devise would be smart enough to pick up the fields names from the migration file but I guess that is not what it does. [...]


16
Jul 13

Generating User Model using devise

After installing devise, the next step was to generate devise User model, so this will give me a users table with form fields that would allow me to create new user, update password and basically everything that is required in managing registration and logging in process. I also got to use rails console to interact [...]


15
Jul 13

Installing authentication system – devise

Today I started working on the authentication system for my rails demo app, idea is to have a way of registering an admin and then logging into the system. I found out that ruby on rails has an authentication system called “Devise” granted it has a strange name, but it is packed with all the [...]


14
Jul 13

Checking out what goes on in the view pages of Ruby on Rails

So today I looked more closely at the demo project view to see how things are constructed and how they fit together. In app/view/layout/application.html.erb we have the system wide main template page, the doc type, header and body elements are defined here. 1 2 3 4 5 6 7 8 9 10 11 12 13 [...]