Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7622275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:24:39+00:00 2026-05-31T04:24:39+00:00

Uh oh /Users/myname/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require’: cannot load such file — classes/loginclass (LoadError) from /Users/myname/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require’

  • 0

Uh oh

/Users/myname/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- classes/loginclass (LoadError)
    from /Users/myname/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from programtest.rb:1:in `<main>'

What have I done? This worked fine on 1.8.7 a few minutes ago; still works fine in TextMate which is running on 1.8.7. Do I need to change my folders somehow?

EDIT:

OK – was able to get it working with this edit:

 require File.dirname(__FILE__) + '/classes/loginclass.rb'

Still don’t understand why I had to change this. I guess my load path changed somehow?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T04:24:40+00:00Added an answer on May 31, 2026 at 4:24 am

    Do not write .rb at end of required file, also use File.join instead of slashes:

    require File.join(File.dirname(__FILE__), 'classes', 'loginclass')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I launch a new Terminal window, it starts me in 'Macintosh HD/Users/MyName'. How
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:CellIdentifier] autorelease]; Still I get the following errors: /Users/myName/Downloads/myApp/Classes/MyTable.m:
The root of my local server is /Users/myname/Sites and all web projects are in
I would like to be able to send my users a url such as
Background info I have an app where users can make microsites ala http://myname.the_app.com .
Errno::EACCES (Permission denied - c:/Users/myname/My Documents/Aptana Studio 3 Workspace/Sample App/First App/first_app/uploa ds/tmp/20110319-2137-6540-1543/album-the-bootleg-series-vol-4-bob-dylan-live-1966-the-royal-albert-hall-concert.jpg): I have
here is my code, why cant i disaply this image : <img src=file:///C:/Users/myname/Documents/WWWDIR/resources/files/users/logo.jpg alt=photo2
When I look at the following folders, they are exteremely large. C:\Users\MyName\AppData\Roaming\Microsoft\VisualStudio (12GB) C:\Users\MyName\AppData\Roaming\Microsoft\VisualStudio.bak
Can’t install application The application at /Users/myname/Documents/SDK/iPhoneApplications/x/build/Debug-iphoneos/x.app does not specify a CFBundleExecutable I don't
Users are pasting text from Lotus Notes into my VBA application. This is then

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.