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

NoMethodError (undefined method `each' for "/uploads":String): #1

Open
fusco opened this issue Jan 6, 2011 · 2 comments
Open

NoMethodError (undefined method `each' for "/uploads":String): #1

fusco opened this issue Jan 6, 2011 · 2 comments

Comments

@fusco
Copy link
Contributor

fusco commented Jan 6, 2011

Hi,
All's in title.

  • fresh install (rails plugin install...)
    uploads/ (with sub directory - files) into public directory
    777 rules apply since installation.

last framework trace :

vendor/plugins/rails-mediabrowser/app/controllers/mediabrowser_controller.rb:43:in `list'

@hab
Copy link

hab commented Feb 17, 2011

It is due to a breaking change between ruby 1.8.x and 1.9.x. The String class does not have an each method any longer. You should be able to use the each_line method instead.

Enjoy,
HakonB

@janispauls
Copy link

hab is right. After changing "each" to "each_line" in line 41 mediabrowser_controller.rb
it works fine. So far :)

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