Reputation: 1495
I just start reading "Rebuilding Rails" by Noah Gibbs. I'm stuck at page17 where def call(env) is declared.
However, when I run rackup, I came across this error:
undefined local variable or method `env' for Rulers::Application:Class (NameError)
How can I define 'env' ?
Upvotes: 0
Views: 1627
Reputation: 775
You got some kind of weird Unicode characters in your lib/rulers.rb. Reformat with normal spaces and/or tabs and it'll work fine. I reproduced the same bug locally from your repo (after "git rm rulers-0.1.0.gem" in your Rulers directory), fixed the spaces and it works fine for me.
Upvotes: 3