I’ve just upgraded to the newest version of rails and was testing my
existing code and ran into an odd error.
I have a few ajax calls, and in one section I let users add and remove
jobs from a list. For some reason, if you select a job of 1234 it
works, but 1234.01 fails. The error also occurs in other areas of the
app when you select these jobs.
(from firebug)
Routing Error
no route found to match “/configure/modify/deleteJ_5384.01”
And the rails log:
ActionController::RoutingError (no route found to match
“/configure/modifyCrew/deleteJ_5384.01” with {:method=>:post}):
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/routing.rb:1325:in
recognize_path' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/routing.rb:1315:in
recognize’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/dispatcher.rb:40:in
dispatch' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/mongrel/rails.rb:76:in
process’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/…/lib/mongrel/rails.rb:74:in
synchronize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/mongrel/rails.rb:74:in
process’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/…/lib/mongrel.rb:155:in
process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/mongrel.rb:154:in
each’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/…/lib/mongrel.rb:154:in
process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/mongrel.rb:281:in
run’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/…/lib/mongrel.rb:281:in
initialize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/mongrel.rb:281:in
new’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/…/lib/mongrel.rb:281:in
run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/mongrel.rb:264:in
initialize’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/…/lib/mongrel.rb:264:in
new' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/mongrel.rb:264:in
run’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/…/lib/mongrel/configurator.rb:282:in
run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/mongrel/configurator.rb:281:in
each’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/…/lib/mongrel/configurator.rb:281:in
run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/mongrel_rails:128:in
run’
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/…/lib/mongrel/command.rb:212:in
run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/mongrel_rails:281 /usr/local/bin/mongrel_rails:16:in
load’
/usr/local/bin/mongrel_rails:16
Has anyone else had issues like this? I can rewrite my code to get
around this (sub 'A’s for periods or something then replace them back
out) but it seems like a crap way of going about it. Like I said, its
fine when jobs don’t have the periods
Bob