PiRSquared17 / activescaffold

Automatically exported from code.google.com/p/activescaffold
MIT License
0 stars 0 forks source link

AJAX close methods do not honour path_prefix of application routes #771

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create application with path_prefix applied to ActiveScaffold routes (e.g. 
'/demo')
2. Open the ActiveScaffold enabled controller's path (e.g. /demo/foo)
3. Edit a record from the model and attempt to close the container via the 
widget/cancel button

What is the expected output? 
- URL called via AJAX method should be /demo/foo/row/1?_method=get

What do you see instead?
- URL called via AJAX method is /foo/row/1?_method=get
- Application does not respond to the route /demo/foo/row/1?_method=get either
(All other URLs on the page use the correct path prefix)

What version (or revision) of the product are you using?
- rails-2.3 branch

If this bug causes an exception, please paste at least the first 20 lines
below of a full backtrace (with backtrace silencers removed).

Original issue reported on code.google.com by sgerr...@gmail.com on 4 Jan 2011 at 8:26