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

  • Home
  • SEARCH
  • 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 5978783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:33:59+00:00 2026-05-22T21:33:59+00:00

Normally I put files in the rails lib folder and they seem to be

  • 0

Normally I put files in the rails lib folder and they seem to be loaded automatically.

I recently tried putting this file : https://gist.github.com/85632 in my lib folder.

From one of my models when I try to do:

 ftp = Net::FTPS::Implicit::new(

I get:

NameError: uninitialized constant Net::FTPS
    from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:440:in `load_missing_constant'
    from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const_missing'
    from /Users/jnylund/Projects/aras/app/models/notifier.rb:372:in `send_ftp_file'

I got it to work by adding:
require ‘ftps_implicit’

to the top of my model file.

Why in this case did I need to do this? Is this the right way of doing things?

thanks
Joel

  • 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-22T21:33:59+00:00Added an answer on May 22, 2026 at 9:33 pm

    Rails 2 will load up files by convention. So when you request:

    Net::FTPS::Implicit::new
    

    … it will look for the file:

    lib/net/ftps/implicit
    

    … to define that class.

    I don’t think Rails 2 actually loads everything up in the lib folder – it only looks in there for a file when something is requested.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Normally css files are put inside <head></head> , what if I put it inside
I know java and would normally put in getter/setter methods. I am interested in
I want to declare some global variables and global constants. Normally, I would put
Normally you can do this: <select size=3> <option>blah</option> <option>blah</option> <option>blah</option> </select> And it would
I can run normally SQLAlchemy when everything is in one file. I now want
New to working with Visual Studio Solutions. I normally place my Site Class file
I am using eXist xml database now.Normally, I just store regular xml files in
I was recently put in charge of updating a VB6 data collection app, to
so suppose my server is located in http://www.example.com I then put a file file.exe
I'm trying to convert mscorlib.tlb. It normally used in C++ like this: #import mscorlib.tlb

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.