vinyll / rails-mediabrowser

Rails 3 plugin providing a web interface to upload and manage images, videos, pdf's, folders and more.
MIT License
36 stars 5 forks source link

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

Open fusco opened 13 years ago

fusco commented 13 years ago

Hi, All's in title.

last framework trace :

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

hab commented 13 years ago

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 commented 13 years ago

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