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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:26:00+00:00 2026-06-15T00:26:00+00:00

I´m newbie in RoR and I would like to know how I can do

  • 0

I´m newbie in RoR and I would like to know how I can do two things in Rails (both versions 2 and 3):

  1. How I can see all queries generated to database (save, update, find, etc.) in the console of the server?

  2. How I can see all the classes and methods of gems included in my Gemfile?

    For example how I can see classes and methods of CanCan, Devise and so on.

    gem "devise"
    gem "cancan"
    gem "rolify"
    gem "sass-rails"
    

And so on…

Sorry for my english and thank in advance!!

  • 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-15T00:26:02+00:00Added an answer on June 15, 2026 at 12:26 am

    In your rails folder there will be a log sub-folder. Depending on where your application is running and on your configurations you’ll be able to see something similar to a development.log, staging.log or production.log file in that folder.

    Also the .to_sql method can be used to show the sql. e.g.

    User.where(:id => 29).to_sql will yield the following:

    "SELECT `users`.* FROM `users` WHERE `users`.`id` = 29"
    

    For viewing gems. In terminal type bundle show devise this will return you a path. Go to that path. All the necessary code will be present over there.

    /home/sohaib/.rvm/gems/ree-1.8.7-2011.03@moviepass/gems/devise-1.4.9

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

Sidebar

Related Questions

RoR/SQL newbie here. My datetime column ' deleted_at ' are all uninitialized. Running this
I'm a super newbie in RoR. Right now I'm working on this interesting Rails
Am a newbie on RoR and would be grateful if you could help me
I'm a newbie spanish Rails developer. ¿Can u help me with a problem with
newbie rails question coming up. I have a class like this: class Thing <
As an RoR newbie, I greatly appreciate any/all assistance in advance! I'm confusing myself
I am a complete newbie in working with a Ruby on Rails (RoR) application.
I am a newbie RoR developer. I am stuck in one problem. I am
Newbie in testing. I generated a test case using Selenium, and then exported it
Newbie question. I have Django models that look like this: class Video(models.Model): uploaded_by =

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.