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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:55:44+00:00 2026-05-28T17:55:44+00:00

rails 3.1 rake routes for admin/sections_contoller trigger_admin_section GET /admin/sections/:id/trigger(.:format) {:action=>trigger, :controller=>admin/sections} admin_sections GET /admin/sections(.:format)

  • 0

rails 3.1

rake routes for admin/sections_contoller

trigger_admin_section GET    /admin/sections/:id/trigger(.:format)    {:action=>"trigger", :controller=>"admin/sections"}
       admin_sections GET    /admin/sections(.:format)                {:action=>"index", :controller=>"admin/sections"}
                      POST   /admin/sections(.:format)                {:action=>"create", :controller=>"admin/sections"}
    new_admin_section GET    /admin/sections/new(.:format)            {:action=>"new", :controller=>"admin/sections"}
   edit_admin_section GET    /admin/sections/:id/edit(.:format)       {:action=>"edit", :controller=>"admin/sections"}
        admin_section GET    /admin/sections/:id(.:format)            {:action=>"show", :controller=>"admin/sections"}
                      PUT    /admin/sections/:id(.:format)            {:action=>"update", :controller=>"admin/sections"}
                      DELETE /admin/sections/:id(.:format)            {:action=>"destroy", :controller=>"admin/sections"}

routes.rb

namespace :admin do
  resources :sections do
    resources :items
    resources :parameters
    get :trigger, :on => :member
  end
...
end

view

<%= link_to "Add a section", new_admin_section_path, :class=>'add-btn' %>

generated link

http://localhost:3000/admin/sections/new

result

No route matches {:action=>"show", :controller=>"admin/sections", 
                  :id=>#<Section id: nil, ..., meta_description: nil}

strange bug or my mistake. other controllers has similar routes and all works fine.
for ex.:

 <%= link_to 'Add a group', new_admin_group_path, :class=>'add-btn' %>

works GREAT!

please, help or i’ll kill myself someday

upd1 same problem on heroku with this app.

upd2 join github issue: https://github.com/rails/rails/issues/4704

  • 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-28T17:55:45+00:00Added an answer on May 28, 2026 at 5:55 pm

    i found the answer.

    once i put this string in view ‘admin/section/_form’

    <%= link_to 'delete', admin_section_path(@section), :method => :delete, :confirm => "Sure?" %>
    

    i used this form for creating and editing. so combination of new object and deleting link for it caused the bug.
    i used debugger for analysis.

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

Sidebar

Related Questions

In rails, on can show the active routes with rake ( http://guides.rubyonrails.org/routing.html ): $
when I do rails g model user name:string rails g controller users index create
In my config/routes.rb I have: post portal_plan_document/update rake routes confirms this: $ rake routes
I have an engine, with this routes file: Rails.application.routes.draw do resources :comments, :controller =>
In my routes.rb i have the following: get 'home/index' root :to => 'home#index' If
When running bundle exec rake routes in my app directory I get the following
[update: by not using rake routes , just to understand Rails console a little
can I get all routes in my rails application? I need an output like
I added some columns to a table using rails and rake, but they do
I'm trying to development a little project in Rails with rake-tasks. First of all,

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.