Top "Rails-routing" questions

The component of the Ruby on Rails framework responsible for mapping between HTTP requests and application resources (including static files and controller actions).

How can I make routes from a Rails 3 engine available to the host application?

I have a Rails 3 application with several engines containing additional functionality. Each engine is a separate service that customers can …

ruby-on-rails ruby-on-rails-3 url-routing rails-routing rails-engines
Rails routing: resources with only custom actions

I have a NotificationsController, in which I only have the action clear. I'd like to access this action by doing …

ruby-on-rails ruby-on-rails-3 rails-routing restful-architecture
How can I create a Rails 3 route that will match all requests and direct to one resource / page?

I have a rails app (Rails 3.0) that I need to temporarily take out of service. While this is in effect, …

ruby ruby-on-rails-3 rails-routing
Routing Error in rails app 'uninitialized constant HomeController'

Im new to use foundation and i have created simple Posts app using scaffold and i have done following steps: …

ruby-on-rails zurb-foundation rails-routing
Rails routing - :on => :collection

The Rails routing guide doesn't specify what :on => :collection means. I cannot find an explanation to what the :on …

ruby-on-rails-3 routing rails-routing
ActionController::RoutingError: uninitialized constant Api::V1::ApiController

I have Rails 5 API project for controlling user tasks and I have the following error but not always for the …

ruby-on-rails ruby ruby-on-rails-5 rails-routing rails-api
Why does rails redirect to the show action after creating?

New web developer here, and I think I may be missing some very fundamental knowledge. Given the code def create @…

ruby-on-rails rails-routing
when does rails looks for Index method and when for show method in controller

I'm new to Rails and I have been following a tutorial. I have been fiddling around with routes.rb and …

ruby-on-rails rails-routing
Getting Rails Nested Resources to Route to correct nested Controllers

In Rails 3.2.11, I have the following route definitions resources :foos do resources :bars resources :bangs, :controller => 'foos/bangs' end …

ruby-on-rails-3.2 rails-routing controllers nested-resources
Rails 3 link or button that executes action in controller

In RoR 3, I just want to have a link/button that activates some action/method in the controller. Specifically, if …

ruby-on-rails model-view-controller controller rails-routing