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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:58:12+00:00 2026-05-27T10:58:12+00:00

I have a Rails route definition that looks something like this: namespace :admin do

  • 0

I have a Rails route definition that looks something like this:

namespace :admin do
  resources :feeds
  resources :push
end

rake routes generates the following output for it:

admin_feeds GET  /admin/feeds  {:controller=>"admin/feeds", :action=>"index"}
admin_push_index GET  /admin/push  {:controller=>"admin/push", :action=>"index"}

Why would would the path helper for push get the _index suffix, but not feeds?

  • 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-27T10:58:13+00:00Added an answer on May 27, 2026 at 10:58 am

    It’s all based on the plurality of the resource. So if the resource name is plural, then it has no need to add an _index suffix since it’s inferred.

    If it is a singular resource name, then it adds the suffix for clarification since admin_push would typically be a show action instead of the index action.

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

Sidebar

Related Questions

I have a rails model that looks something like this: class Recipe < ActiveRecord::Base
in my Rails app have this routes.rb: devise_for :admin namespace :admin do root :to
I have a Rails route that takes stock ticker symbols as the :id feeds/AMZN
I have a route that works (recognized, can follow it) in a Rails 3
I have a rails route set up like: match ':controller/:id/:action' # match 'teams/:id' =>
I have a rails app with a cappuccino front end that I am trying
Using github like chain routes in rails I have URLs similar to this: 'localhost:3000/document_managers/[:module_name]'
I have a nested route in rails 3 mapped as resources :maps do resource
I have a rails route that goes to the #works for /profile/abc /profile/:id However,
I have the following rails 3 nested models: resources :books do resources :authors end

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.