Route Skips Call to Method

The following route:

map.connect ‘/adjust’, :controller => ‘inventory’, :action => ‘adjust’

is failing to call the ‘adjust’ method in ‘inventory_controller.rb’,
demonstrated by the first line of the method, a puts statement, never
outputting to the console. The console shows the route being found, and
the corresponding adjust.rjs file is getting called, but none of the
variables that would have been set in the ‘adjust’ method exist, so
errors are thrown there.

I’ve renamed everything a couple time to make sure I don’t have any
magic names causing problems and to make sure I don’t have routing
conflicts, but nothing seems to help.

Any ideas?

MikeP

2009/10/16 Mike P. [email protected]:

errors are thrown there.

I’ve renamed everything a couple time to make sure I don’t have any
magic names causing problems and to make sure I don’t have routing
conflicts, but nothing seems to help.

What does the log say? (log/development.log).

Colin

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs