This project is archived and is in readonly mode.

#6112 ✓resolved
Ches Martin

app generator not including script.aculo.us with prototype

Reported by Ches Martin | December 3rd, 2010 @ 03:06 PM

With the commit accepted in #5613 to add the --javascript and --skip_javascript options to the app generator, the wrong option is checked for when determining whether or not to include the script.aculo.us files when using Prototype (meaning this affects an app generated with default/no additional options).

The default javascript_expansions config expects these to be present, so they get included in the application layout and the log is littered with errors of no route matching the missing .js files.

The attached patch is a one-liner, plus tests. I've also submitted a pull request.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Referenced by

Pages