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 8687463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:07:26+00:00 2026-06-12T23:07:26+00:00

I am trying to use the twitter-text-rb (https://github.com/twitter/twitter-text-rb) in my Rails 3 app. I

  • 0

I am trying to use the twitter-text-rb (https://github.com/twitter/twitter-text-rb) in my Rails 3 app.

I installed it using bundler and my gemfile – seemingly successfully – but when I try and include its autolink function in my Application Helper, like this:

require 'twitter-text'
module ApplicationHelper
include Twitter::Autolink
end

I get this error in the browser when I try to load the root of the app:

Routing Error
uninitialized constant Twitter::Autolink Try running rake routes for
more information on available routes.

I’ve followed these Troubleshooting Questions within the Ruby Gems manual but it doesn’t seem to be either of the two likely issues that they suggest under “Why does require ‘some_gem’ fail?”.

Here’s the extract from when I followed their instructions from the root of my app using terminal:

manager$ gem list twitter-text

*** LOCAL GEMS ***

twitter-text (1.5.0)
manager$ ruby -rubygems -e 'require "twitter-text"'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:60:in `gem_original_require': no such file to load -- twitter-text (LoadError)
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:60:in `require'
    from -e:1
manager$ gem contents --no-prefix twitter-text | grep lib
lib/twitter-text.rb
lib/twitter-text/autolink.rb
lib/twitter-text/deprecation.rb
lib/twitter-text/extractor.rb
lib/twitter-text/hit_highlighter.rb
lib/twitter-text/regex.rb
lib/twitter-text/rewriter.rb
lib/twitter-text/unicode.rb
lib/twitter-text/validation.rb
manager$ ruby -rubygems -e 'require "twitter-text"'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:60:in `gem_original_require': no such file to load -- twitter-text (LoadError)
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:60:in `require'
    from -e:1
manager$ which ruby
/usr/bin/ruby
manager$ gem env | grep 'RUBY EXECUTABLE'
  - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

I’m using and handful of other gems in the app and haven’t run into similar problems before.

I’m at a loss as what to try next. I’m pretty new to Ruby/Rails (and programming in general for that matter!) so any help would be much appreciated.

thanks,

Matt

  • 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-06-12T23:07:27+00:00Added an answer on June 12, 2026 at 11:07 pm

    I’ve now got this gem working and removed the Load Error (although I can’t say for sure what went right).

    I installed RVM and tried my app and the twitter_gem using Ruby 1.9.2 and Rails 3.2.3. I was previously using the system default Ruby – 1.8.7 – and Rails 3.2.3. The gem was loaded correctly and worked perfectly.

    So it seems like the problem was with the gem working on the earlier version of Ruby or RVM’s gemsets helped the app to load the gem correctly.

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

Sidebar

Related Questions

background: trying to use the twitter gem for ruby-on-rails. in routes: map.resources :twitter_sessions map.finalize_twitter_sessions
I'm trying to use Google's OAuth in my system. I've successfully integrated Twitter and
I am trying to use Twitter Bootstrap tabbable and Bootstrap popovers in a same
I am trying to use Twitter Bootstrap for GWT and get the same nice
I'm trying to use twitter bootstrap to create Facebook like tooltip layout. I would
I'm tearing my hair out over this one: I'm trying to use the Twitter
I have recently started to use Twitter Bootstrap and trying to understand how it
I'm trying to use the official Facebook and Twitter buttons together. I'd like to
I ve been trying to use OAuth to authenticate users with their twitter account.
I'm trying to use the rottentomatoes movie API with twitter's bootstrap typeahead plugin but

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.