JoshCheek / seeing_is_believing

Displays the results of every line of code in your file
1.31k stars 54 forks source link

emacs rails #15

Closed chalmagean closed 10 years ago

chalmagean commented 11 years ago

Just tried this in emacs in a rails app and it blows up. Not sure if it's supposed to work inside of a rails app or not, just thought it would be useful.

I'm just doing User.first # => and then I call the seeing-is-believing function

Output:

It blew up >.< Please log an issue at: https://github.com/JoshCheek/seeing_is_believing/issues
SeeingIsBelieving::VERSION  "2.0.2"
Parser::VERSION             "2.0.0.pre6"
RUBY_VERSION                "2.0.0"
ENV['RUBY_VERSION']         nil
Also include the source code of program that caused this behaviour.
JoshCheek commented 11 years ago

Hmm, that shouldn't cause it to blow up in this manner. Can you add the --debug flag to the integration code and let me know the output?

JoshCheek commented 10 years ago

Closing this b/c I've successfully used it in Rails. IIRC, all you need to do is load config/environment.rb from the file and you'll be fine.