The current directory isn’t in $LOAD_PATH. Try ‘require “./models/
user.rb”’.
You don’t specify your Ruby version, but I’m guessing that it is 1.9
since that’s where the current directory stopped being on the
$LOAD_PATH by default.
Thank you Rob B.! Yes I just recently got back into ruby after
going on PHP for a year or so (which is really way too ugly) and
switching back to rails. However I do not believe I had used 1.9.x
before, I was unaware of that change.
Thank you again!
Mohammad
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.