vinyll/rails-mediabrowser

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

Opened this issue · 2 comments

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 commented

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

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