RailsCasts Pro episodes are now free!

Learn more or hide this

Godisemo's Profile

GitHub User: Godisemo

Comments by

Avatar

Had problems with this too. Thanks.

Avatar

It should be cookies.delete(:auth_token), not cookies.delete[:auth_token].

Avatar

I'm using nested forms to which I add fields dynamically with ryans gem nested_form. How could these fields be validated?

Avatar

I experience that the tests run really slow, is there a way to speed things up?

Avatar

Hi,

I have previously used devise for authentication but think it is to heavy with too many functions and too much I have to customize. This new built-in methods are really nice.

In devise you use a before_filter to authenticate certain actions, e.g.

some_controller
before_filter :authenticate_user!

How can I do the same thing without using devise and instead use the new methods?

Avatar

BCrypt stores the salt with the password hash I believe.