It’s been a while since I looked at rails and I am a but rusty. I’m
looking for a nudge in the right direction if anyone would be so kind to
I’m looking at something I did a few years back that I need to review
and upgrade. The last time I looked at this we were on Rails 2.0.2 so
that’s what this code is for. So I am trying to get it running on that
environment to start off.
I have a RVM environment running rails 2.0.2 on ruby 1.8.7. I can run my
application but I get an error like the below.
wrong argument type Class (expected Module)
Application Trace | Framework Trace | Full Trace
The code snippet referred to is a module of the form:
60 module Mymodule
62 require ‘openssl’
63 include OpenSSL
64 include PKey
65 include Cipher
So I suspect I have something wrong with my OpenSSL in rvm, but I don’t
This code worked fine the last time I looked at it. The module is mixed
in to a controller.
I tried the below to test if openssl is available:
$ ruby -ropenssl -e “puts :Hello”
I would appreciate any pointers I can get to help me get started…