Error : Proc or blocks must have arity 1
Closed this issue · 5 comments
I am using the slim gem that depends the template, when i run the slim that gets me a error,
.../temple-0.3.4/lib/temple/mixins/engine_dsl.rb:128:in element': Proc or blocks must have arity 1 (ArgumentError) from /home/app/ruby/lib/ruby/gems/1.9.1/gems/temple-0.3.4/lib/temple/mixins/engine_dsl.rb:9:in
append'
from /home/app/ruby/lib/ruby/gems/1.9.1/gems/slim-1.0.4/lib/slim/engine.rb:68:in <class:Engine>' from /home/app/ruby/lib/ruby/gems/1.9.1/gems/slim-1.0.4/lib/slim/engine.rb:4:in
module:Slim'
from /home/app/ruby/lib/ruby/gems/1.9.1/gems/slim-1.0.4/lib/slim/engine.rb:1:in `<top (required)>'
....
The ruby code as follows
require "slim"
Tilt.new['template.slim'].render(scope)
Slim::Template.new(filename, optional_option_hash).render(scope)
Slim::Template.new(optional_option_hash) { source }.render(scope)
Interesting. The same failure is on Travis too, but that wasn't until yesterday or so: http://travis-ci.org/#!/judofyr/temple/jobs/405569.
The same failures show up for Slim too: http://travis-ci.org/#!/stonean/slim.
That is working when you fixed it.
I'm just surprised the error was in v0.3.4.