Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 310807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:52:02+00:00 2026-05-12T07:52:02+00:00

immediately after has_many_polymorphs install with ruby script/plugin install git://github.com/fauna/has_many_polymorphs.git i start getting following error

  • 0

immediately after has_many_polymorphs install with

ruby script/plugin install git://github.com/fauna/has_many_polymorphs.git

i start getting following error whenever i try to execute smth like script/generate or script/server

=> Rails 2.3.2 application starting on http://0.0.0.0:3000
/test/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/autoload.rb:41:in `initialize': can't convert Hash into String (TypeError)
from /test/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/autoload.rb:41:in `open'
from /test/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/autoload.rb:41:in `autoload'
from /test/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/autoload.rb:39:in `each'
from /test/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/autoload.rb:39:in `autoload'
from /test/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/autoload.rb:61:in `after_initialize'
from /home/pavel/.gem/ruby/1.8/gems/rails-2.3.2/lib/initializer.rb:177:in `process'
from /home/pavel/.gem/ruby/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `send'
from /home/pavel/.gem/ruby/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `run'
from /home/pavel/Desktop/www/webdev/simplecommunities/config/environment.rb:9
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /var/lib/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
from /var/lib/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /var/lib/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
from /home/pavel/.gem/ruby/1.8/gems/rails-2.3.2/lib/commands/server.rb:84
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from script/server:3

Thanks for any help on that,

Pavel

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T07:52:03+00:00Added an answer on May 12, 2026 at 7:52 am

    Try to change the line 41 in autoload.rb from

      open(filename, :encoding=>"utf-8") do |file|
    

    to

     open filename do |file|
    

    At least the application now boots for me.

    K-P

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 194k
  • Answers 194k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You are using Activity in the "on" statement before you've… May 12, 2026 at 6:51 pm
  • Editorial Team
    Editorial Team added an answer As a brutforce answer you can produce all your objects… May 12, 2026 at 6:51 pm
  • Editorial Team
    Editorial Team added an answer This is a common gotcha in Python - if you… May 12, 2026 at 6:51 pm

Related Questions

VS 2008 SP1 I am using the DownloadStringAysnc. But the ProgressChanged event doesn't show
In using vim, when I start a comment with //, immediately after I type
Say I have a list of integers, where each element is a number from
I'm writing an application that has a multiple producer, single consumer model (multiple threads

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.