Forum: Rails Engines engine_javascript and engine_stylesheet broken

F0699bc4e920a0cea55b958d204b0a4b?d=identicon&s=25 Slain Wilde (slain)
on 2006-10-13 10:06
engine_javascript and engine_stylesheet are broken in that you can't
order the stylesheets and javascripts, <engine>.css and <engine>.js are
*always* first, which breaks cascading and javascripts that rely on
other...

So you have to either do

engine_stylesheet <engine>, 'basic_style', 'real_<engine>_style'

or similar...

engine_stylesheet and engine_javascriopt should at least look for
<engine> later in the sources and not automatically create the first one
if it is found.
F0699bc4e920a0cea55b958d204b0a4b?d=identicon&s=25 Slain Wilde (slain)
on 2006-10-13 10:14
changing action_view_extensions.rb (line 129) to:

if defined?(RAILS_ROOT) && File.exists?(File.join(RAILS_ROOT, "public",
"#{default}.#{ext}")) && sources.index(engine_name) == nil

(added "&& sources.index(engine_name) == nil" )

fixes this problem (assuming no case issues).
This topic is locked and can not be replied to.