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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:45:21+00:00 2026-05-25T06:45:21+00:00

Ap::Application.routes.draw do resources :accounts end I want to know the class or module to

  • 0
 Ap::Application.routes.draw do
  resources :accounts
 end

I want to know the class or module to which the “resources” method belongs. If i search for “resources” method in http://apidock.com/rails/ (in the search text box provided), a list of classes are appearing which has the method name “resources”. Confused, with knowing the origin of the method.

Is their any command which i can use in puts to see the origin.

The question is bit of beginners level.

Thanks

  • 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-25T06:45:22+00:00Added an answer on May 25, 2026 at 6:45 am

    Ruby is an object-oriented language. And while methods aren’t objects in Ruby, you can ask Ruby to give you a Method object representing the method in question, and then you can simply tell that Method to give you its owner:

    Ap::Application.routes.draw do
      p method(:resources).owner
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Relevent codes routes.rb Waterloop3::Application.routes.draw do resources :submissions match ':controller(/:action(/:id(.:format)))' end submission_controller.rb - Contains an
here is my config/routes.rb : Eesoudayo::Application.routes.draw do resources :articles do resources :comments end end
I have a model called newbie. The routes.rb file looks like: Myapp::Application.routes.draw do resources
I have an engine, with this routes file: Rails.application.routes.draw do resources :comments, :controller =>
Error: No route matches {:action=>new, :controller=>comments, :parent_id=>1} routes.rb: MyApp::Application.routes.draw do resources :posts do resources
Here is my routes files: Tubalr::Application.routes.draw do devise_for :users root :to => application#index get
I have this devise routes in routes.rb file: app::Application.routes.draw do scope :locale, locale: /#{I18n.available_locales.join(|)}/
I have an application where I'm dynamically loading routes by a model, and calling
I have an asp.net mvc application with a route similar to: routes.MapRoute(Blog, {controller}/{action}/{year}/{month}/{day}/{friendlyName}, new
I'm building a Zend Framework 1.11.11 application and would like to make the routes

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.