Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that the directory 'vendor/assets/javascripts' is created by AppGenerator #3287

Merged

Conversation

sgerrand
Copy link
Contributor

The directory 'vendor/assets/javascripts' is referenced in railties/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt, but isn't actually created as part of the generator suites.

// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.

I've added a method to the AppGenerator class and a relevant test to ensure this directory is created.

@sgerrand
Copy link
Contributor Author

Hi @josevalim, would you please review this pull request.

josevalim added a commit that referenced this pull request Oct 12, 2011
…ld_be_created

Ensure that the directory 'vendor/assets/javascripts' is created by AppGenerator
@josevalim josevalim merged commit f6c9349 into rails:master Oct 12, 2011
@arunagw
Copy link
Member

arunagw commented Oct 13, 2011

Not sure why this is removed from here d9c39c3

@sgerrand
Copy link
Contributor Author

Looks like @fxn accidentally removed the vendor_javascripts method inadvertently.

@fxn
Copy link
Member

fxn commented Oct 13, 2011

The method was removed because jQuery was provided via the asset pipeline and its primary purpose was to generate the files. But it was an oversight not to create the directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants