-
Notifications
You must be signed in to change notification settings - Fork 99
Fix Bootsrap install when there is no assets.rb #82
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
Conversation
|
I think the fix should be in rails/rails, deleting the
The code generated in the |
|
Giving this a second thought, it also make sense to check if the assets.rb file exists |
| <<~RUBY | ||
| Rails.application.config.assets.paths << Rails.root.join("node_modules/bootstrap-icons/font") | ||
| RUBY | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe if it doesn't exist, we can do the same as below and output what to do ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is most correct to say:
something like:
Add Rails.application.config.assets.paths << Rails.root.join("node_modules/bootstrap-icons/font") to your entry point Assets file
or something like
Create config/initializers/assets.rb and add Add Rails.application.config.assets.paths << Rails.root.join("node_modules/bootstrap-icons/font") there
If it is second so we should create the file with correct content inside.
Right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about
Add Rails.application.config.assets.paths << Rails.root.join("node_modules/bootstrap-icons/font") in your assets configuration file (by convention in 'config/initializers/assets.rb')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And why just not create this file config/initializers/assets.rb, if it not exists?
But, it is fixed with rails/rails#44615.
|
@Edouard-chin |
|
Fixed via rails/rails#44615 |
Fix rails/rails#44597