rails / journey

A router for rails
221 stars 57 forks source link

assets URLs fall into own routes rules #57

Closed lapenya closed 7 years ago

lapenya commented 11 years ago

In development, on a page load, and not all but a considerable number of JS requests like:

/assets/app/models/i18n.js?body=1

do not return corresponding JS asset, but they fall into my default routes rule:

match '*all' => 'limbo#redirect_to_there'

using JRuby + Puma + Rails 3.2.11, journey 1.0.4

lapenya commented 11 years ago
"action_dispatch.request.path_parameters"=>{:controller=>"limbo", :action=>"redirect_to_there", :all=>"app/models/i18n", :format=>"js"}
pixeltrix commented 11 years ago

I assume that there's an actual file at the path /assets/app/models/i18n.js ? If so then it may be a thread safety issue which may also explain your experience with issue #54. Does the problem go away if you enable config.threadsafe! and run in production mode?

pixeltrix commented 11 years ago

The development mode in Rails is inherently unsafe due to code reloading so there's not a lot we can do if that's the problem.

pixeltrix commented 7 years ago

Closing due to lack of feedback