This project is archived and is in readonly mode.

#692 ✓resolved
iGEL

Defining routes with symbols failes

Reported by iGEL | July 24th, 2008 @ 04:13 PM | in 2.x

Creating routes with a symbol like this failes:

map.with_options :controller => "vip" do |vip|
    vip.vip_index '/vip', :action => :index
end

Rails won't find the Method in the controller, but it will find the view! The fix is easy:

actionpack/lib/action_controller/base.rb:1161 (in Rails 2.1.0) must be changed from:

        if self.class.action_methods.include?(action_name)

to:

        if self.class.action_methods.include?(action_name.to_s)

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>

Attachments

Referenced by

Pages