This project is archived and is in readonly mode.

#376 ✓stale
Bounga

Bug in routes recognition

Reported by Bounga | June 9th, 2008 @ 09:05 AM

Using Rails 2.1

  1. routes.rb

map.resources :associations, :member => {:move_up => :get, :move_down => :get} do |associations|

associations.resources :pages, :member => {:move_up => :get, :move_down => :get}

end

  1. url

move_up_association_path(asso) =>

http://localhost:3000/associatio...

  1. Server Error

Processing AssociationsController#3-assado (for 127.0.0.1 at 2008-06-05 09:27:48) [POST]

Session ID: 374d7e63874d2f8508172a33515c7736

Parameters: {"action"=>"3-assado", "authenticity_token"=>"20e538ed89d7c82bf336cd21f21d53458d1d67ce", "id"=>"move_up", "controller"=>"associations"}

ActionController::UnknownAction (No action responded to 3-assado):

########

The only way to reach the action is to use a hard coded URL (http://localhost:3000/associatio...)

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Tags

Pages