Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explosions on Ruby 1.9. #4

Open
preston opened this issue Feb 4, 2011 · 2 comments
Open

Explosions on Ruby 1.9. #4

preston opened this issue Feb 4, 2011 · 2 comments

Comments

@preston
Copy link

preston commented Feb 4, 2011

Note: the String#camelize method is no longer available. Try something like this:

"two_words".split(/_/).map{ |word| word.capitalize }.join('')

:)

@movitto
Copy link
Owner

movitto commented Apr 10, 2011

Can you please elaborate on your environment and how you set this up.

String#camelize is defined in active support, which we are including in rxsd, and has not been removed / is still present in the upstream HEAD

https://github.com/rails/rails/blob/master/activesupport/lib/active_support/core_ext/string/inflections.rb#L55

Googling 'ruby 1.9 camelize' turns a few things up for certain scenarios where ruby 1.9 is installed via rvm and there are certain gems present / not present. Could you look at this and tell me if this is the case for you or if not what your environment is. Thanks

https://rails.lighthouseapp.com/projects/8994/tickets/3552-running-rails-foo-under-ruby-191-fails-w-undefined-method-camelize-for-appstring

@deanlxvii
Copy link

I've got it working in my (rvm) environment.

Changed common.rb line 7:

 require 'active_support' 

to

require 'active_support/inflector'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants