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

Already initialized constant TAG, Ruby On Rails #8

Closed
stephan-nordnes-eriksen opened this issue Nov 6, 2013 · 3 comments
Closed

Already initialized constant TAG, Ruby On Rails #8

stephan-nordnes-eriksen opened this issue Nov 6, 2013 · 3 comments

Comments

@stephan-nordnes-eriksen
Copy link

I am getting the following errors when using docx in my rails app. I have a rails model called Tag.

/Users/me/.rvm/gems/jruby-1.7.4@neo4jtest/gems/docx-0.2.03/lib/docx/elements/bookmark.rb:10 warning: already initialized constant TAG
/Users/me/.rvm/gems/jruby-1.7.4@neo4jtest/gems/docx-0.2.03/lib/docx/elements/text.rb:7 warning: already initialized constant TAG
/Users/me/.rvm/gems/jruby-1.7.4@neo4jtest/gems/docx-0.2.03/lib/docx/containers/text_run.rb:17 warning: already initialized constant TAG
/Users/me/.rvm/gems/jruby-1.7.4@neo4jtest/gems/docx-0.2.03/lib/docx/containers/paragraph.rb:12 warning: already initialized constant TAG

I am guessing this can be fixed with better use of namespaces.

@stephan-nordnes-eriksen
Copy link
Author

And now I see that there is a pull for this issue: #2

@Bahanix
Copy link

Bahanix commented Dec 3, 2013

0.2.04 docx gem version is not released. You can fix it with:

gem 'docx', github: 'chrahunt/docx'

You may be interrested by the Yomu gem (read doc/docx/pdf/odt/rtf...)

@stephan-nordnes-eriksen
Copy link
Author

Hey! The Yomu gem seems very useful! Will Definitely check it out

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