Generates common user authentication code for Rails/Merb, with a full test/unit and rspec suite and optional Acts as State Machine support built-in.
— Read more
Just downloaded and found that “s.files =” in this spec should be updated!
Many files are misssing, I used a Dir[‘/’] and resolved, but this won’t work in github, you ca use this patch:
Is it just me or does the validates_length_of :name … need a allow_nil => true as well, because the rspec tests are failing (telling me “name ist too long…”) when passed nil values for name
Is it just me or does the validates_length_of :name … need a allow_nil => true as well, because the rspec tests are failing (telling me “name ist too long…”) when passed nil values for name
Is it just me or does the validates_length_of :name … need a allow_nil => true as well, because the rspec tests are failing (telling me “name ist too long…”) when passed nil values for name
Can someone please explain why this line has params[‘password’] repeated at the end? Is is a special trick? Wouldn’t it be sufficient just to have ~ params[‘confirm’] ||= params[‘password’]? Just trying to understand it. Thanks.
Crud, I thought this was out of rake’s purview — don’t know what gave me that idea. Until it’s moved to the right place I’ve at least re-namespaced it all.
It seems as though this commit borked the db migration…
mdarby@macbook:~/Desktop/temp: ./script/generate authenticated user sessions \ 23:39:47
—include-activation \
—rspec
…
mdarby@macbook:~/Desktop/temp: rake db:migrate 23:40:50
(in /Users/mdarby/Desktop/temp)
cd /tmp/empty_app
rake aborted!
No such file or directory – /tmp/empty_app
cool. /em points to the new tracker — if your snags were “interesting”, open an issue; describe your solution; and then I’ll close it. Then everyone is a little smarter.
No, your are not the only one….
Actually I had to leave only html there.. otherwise it won`t work in IE.
Some guys on the IRC channel said IE sends a * wildcard in the request… or something as stupid as that…
Am I the only person who is having IE problems with this line? After a redirect, IE always gets request_http_basic_authentication complete with a ghetto login box. I guess the accepts headers aren’t being sent by IE on redirect?
Whatever is happening, it’s definitely not responding to format.html.
Whenever you are trying to make the activation code try removing the enter command and pasting this in:
aasm_event :register, :success => :make_activation_code do
If you do it on the event block, it appears to fire the method correctly. I found this in the rspec tests of the aasm code. You should take a look for more examples.
Issues:
1. When User is created the record is properly updated from ‘passive’ to ‘pending’ BUT the “make_activation_code” is not called as expected given “:enter => :make_activation_code.” I had to put a before_filter in my User class to call “make_activation_code” to get things to work.
2. Same problem when moving from ‘pending’ to ‘active’. The state is changed when user.activate! is called … but the “do_activate” method is not called.