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

private method `open' called for Roo::Excelx:Class #125

Closed
anujaware opened this issue Mar 28, 2014 · 5 comments
Closed

private method `open' called for Roo::Excelx:Class #125

anujaware opened this issue Mar 28, 2014 · 5 comments

Comments

@anujaware
Copy link

Working on console but when I try to use it in rails application it throws error
"private method `open' called for Roo::Excelx:Class".
Thank you!

@Empact Empact closed this as completed in 597482c Jun 9, 2014
@anujaware
Copy link
Author

Hey thanks Empact!

@herbertia
Copy link

Hi I have the same issue but not with Excelx file but with Excel. Not working neither in console nor i the project. But it maybe comes comes from Spreadsheet gem... Any idea how to fix this?
[35] pry(main)> Roo::Excel.new('test.xls')
NoMethodError: private method open' called for #<Class:0x007fc04a6de860> from /Users/Stephanie/.rvm/gems/ruby-2.0.0-p247@clm/gems/activerecord-4.0.0/lib/active_record/dynamic_matchers.rb:22:inmethod_missing'
[36] pry(main)>

Thanks for your help!

@Unayung
Copy link

Unayung commented Aug 5, 2014

Hi, I'm experiencing the same issue with @herbertia .
Roo::Excel.new(myfile.path) then I got
NoMethodError: private method open' called for #Class:0x007fc04a6de860.

Thanks in advance

@herbertia
Copy link

Actually my problem came from the fact that I had in my project a class named Spreadsheet. Roo uses the spreadsheet gem where there is a class named Spreadsheet. By renaming my class I was able to make it works. Hope it will help you!

@Unayung
Copy link

Unayung commented Aug 8, 2014

LoL ! my class is also named Spreadsheet. now I get it. thanks mate :)

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