Yesterday I read the following railscasts. They weren't difficult for me because we have been working these days with these concepts.
http://railscasts.com/episodes/300-contributing-to-open-source
http://railscasts.com/episodes/234-simple-form
Today I started to read the railscast:
http://railscasts.com/episodes/275-how-i-test
But if I wanted to follow it, I had to make a previous railscast:
http://railscasts.com/episodes/250-authentication-from-scratch?view=asciicast
So I started this railscast.
The differences between my code and this railscast are:
- I used my project_learning_app instead of creating a new one.
- I used the simple_form for the sign_up form
- I haven't changed my home page.
- I had to use
attr_accessible :email
attr_protected :password_hash, :password_salt
instead of all attr_accessible.
- For the log_in form I didn't want to use simple form. The problem is for the log_in form you obtain data for an object (Session) that doesn't have a Model. Although there is a workaround for using simple form without a Model, I preferred using form_tag instead of simple_form.
From this point I'll add links for the navigation (the rest of the railscast) and then I have to bind the rest of the application with the Authentication.
Tomorrow more!!!
Keine Kommentare:
Kommentar veröffentlichen