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

TypeError on .new() - can't convert Symbol into String #23

Open
zetlan opened this issue Sep 15, 2011 · 0 comments
Open

TypeError on .new() - can't convert Symbol into String #23

zetlan opened this issue Sep 15, 2011 · 0 comments

Comments

@zetlan
Copy link

zetlan commented Sep 15, 2011

Trying to use Settingslogic to open an arbitrary file for settings, and getting this error (from console):

eliot:ResumeEverywhere scott$ rails console
Loading development environment (Rails 3.0.7)
ruby-1.9.2-p290 :001 > s = Settings.new(:application)
TypeError: can't convert Symbol into String
    from /usr/local/rvm/gems/ruby-1.9.2-p290@rails-3/gems/settingslogic-2.0.6/lib/settingslogic.rb:105:in `read'
    from /usr/local/rvm/gems/ruby-1.9.2-p290@rails-3/gems/settingslogic-2.0.6/lib/settingslogic.rb:105:in `initialize'
    from (irb):1:in `new'
    from (irb):1
    from /usr/local/rvm/gems/ruby-1.9.2-p290@rails-3/gems/railties-3.0.7/lib/rails/commands/console.rb:44:in `start'
    from /usr/local/rvm/gems/ruby-1.9.2-p290@rails-3/gems/railties-3.0.7/lib/rails/commands/console.rb:8:in `start'
    from /usr/local/rvm/gems/ruby-1.9.2-p290@rails-3/gems/railties-3.0.7/lib/rails/commands.rb:23:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

Using Rails 3.0.7, settingslogic 2.0.6, and this code in model/settings.rb:

class Settings < Settingslogic
  namespace Rails.env
end
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

1 participant