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

ArgumentError (wrong number of arguments (1 for 0)): #31

Closed
contractus opened this issue Jul 26, 2016 · 9 comments
Closed

ArgumentError (wrong number of arguments (1 for 0)): #31

contractus opened this issue Jul 26, 2016 · 9 comments

Comments

@contractus
Copy link

i dont know if i making mistake, but coping and paste instruction code, i getting thats error:
ArgumentError (wrong number of arguments (1 for 0)):

my gem file:
http://pastebin.com/jJ92wkjH

require "sablon"
template = Sablon.template(File.expand_path("~/Desktop/template-a.docx"))
context = {
title: "Fabulous Document",
technologies: ["Ruby", "Markdown", "ODF"]
}

error on next line

template.render_to_file File.expand_path("~/Desktop/output.docx"), context

@thiagoliof
Copy link

i think so the problem can be
https://github.com/rubyzip/rubyzip#known-issues

@senny
Copy link
Owner

senny commented Jul 27, 2016

@contractus can you please paste the complete backtrace?

@contractus
Copy link
Author

I found the problem @senny.
i having conflit on rubyzip gem dependency
I am using together gem 'axlsx' and gem 'sablon' at same gem file.
i dont know if this is real bug!

@senny
Copy link
Owner

senny commented Jul 28, 2016

@contractus I see. Was it dependent on the version of rubyzip? Maybe sablon needs to have a better requirement specification.

@contractus
Copy link
Author

Sorry about my late @senny!
axlsx using dependency 'rubyzip', '~> 1.1.7'
and sablon using dependency 'rubyzip', ">= 1.1"

@senny
Copy link
Owner

senny commented Aug 5, 2016

@contractus and what version of rubyzip was causing issues for you? How did you solve them? By upgrading rubyzip? To what version?

@senny
Copy link
Owner

senny commented Sep 3, 2016

I'm closing this for now. Please report back if you have any further issues.

@senny senny closed this as completed Sep 3, 2016
@istiaqiut
Copy link

istiaqiut commented Dec 5, 2017

Hello,
I am facing the same problem.
I am using gem 'axlsx' and gem 'sablon' together in the same gem fille.

My rubyzip version is 1.0.0

@stadelmanma
Copy link
Collaborator

Hi @istiaqiut Sablon requires rubyzip to be above 1.1.1

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

5 participants