frab / frab

conference management system
https://frab.github.io/frab/
Other
712 stars 151 forks source link

Creating cfp user fails on ruby 1.8.7 #3

Closed wingfire closed 12 years ago

wingfire commented 12 years ago

Please fix code or documentation. ruby -v ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux] rails -v Rails 3.1.1

NoMethodError in Cfp::UsersController#create

undefined method `urlsafe_base64' for SecureRandom:Module

Rails.root: ./frab Application Trace | Framework Trace | Full Trace

lib/unique_token.rb:7:in generate_token_for' lib/unique_token.rb:6:inloop' lib/unique_token.rb:6:in generate_token_for' app/models/user.rb:91:ingenerate_confirmation_token' app/controllers/cfp/users_controller.rb:15:in `create'

wingfire commented 12 years ago

working with: ruby -v ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux] rails -v Rails 3.1.1

oneiros commented 12 years ago

I think the SecureRandom thing is the only 1.8 incompatibility right now, so I will look into a possible workaround.

Ruby 1.9 has been around (and stable) for a long time now, though. Rails will eventually drop support for 1.8, so I would advise everyone to use 1.9.

oneiros commented 12 years ago

I deciced to not pursue this after all. This is now reflected in the README.

I still maintain a few applications that need to run on 1.8 and it is becoming an ever more increasing pain. Upgrading to ruby 1.9 is really worth whatever hassle it might cause.