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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:05:28+00:00 2026-06-11T06:05:28+00:00

I have a sinatra ruby app in heroku. I am trying to access the

  • 0

I have a sinatra ruby app in heroku. I am trying to access the database via the console.When I run the heroku run console , I am getting the following error.

Running console attached to terminal... up, run.10
    /app/vendor/ruby-1.9.2/lib/ruby/1.9.1/irb/init.rb:281:in `require':LoadError: no such file to load -- ./console.

When I try to access the record using the following command, I am getting the following error :

irb(main):001:0> Setting.first
NameError: uninitialized constant Object::Setting
    from (irb):1
    from bin/irb:12:in `<main>'

Can anyone help me in what needs to be done. Am I missing some file or Is there a different way to access the tables in heroku?

  • 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-11T06:05:29+00:00Added an answer on June 11, 2026 at 6:05 am

    The heroku console thing is an old hack for rails apps, but it won’t work elsewhere. As you can see from the output, it’s trying to load a file called ./console. So, create a console file on your project root, and invoke IRB from it after having connected to your database. For example:

    #!/usr/bin/env ruby                                                                                                
    
    require 'irb'                                                                                                      
    require 'irb/completion'                                                                                           
    
    require 'rubygems'                                                                                                 
    require 'bundler/setup'                                                                                            
    
    # require something that connects to your database
    # or just connect here using ENV['DATABASE_URL']
    require 'your_project_setup'
    
    IRB.start
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very simple sinatra site that I'm trying to access via ajax
I have test app written on ruby, using Sinatra+Sequel. config.ru: require './main' run Sinatra::Application
I have a production ruby sinatra app running on nginx/passenger, and I frequently see
I have a Sinatra DataMapper app hitting a sqlite3 database that I am attempting
I have a Sinatra app, that uses omniauth which constantantly gets this error attack
So I have a Sinatra app that receives an XML via a HTTP POST
I have a basic Ruby app that I am building with Sinatra, Datamapper and
I've been trying to get a simple hello world web app running on Sinatra.
I'm trying to get my Heroku app to run using the bamboo-mri-1.9.2 stack. Of
I’m relatively new to Ruby, Sinatra, and DataMapper, but have a question about DataMapper

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.