Commit Graph

183 Commits

Author SHA1 Message Date
OKURA Masafumi
28dc6258b0 Add modern way to enable asset precompile to guide
Capistrano version 3 changed its way to enable asset precompile
during deployment.
This commit doesn't remove old way but only add new way for v3.
2019-09-03 17:11:43 +09:00
Kasper Timm Hansen
ae3cc9daa9
[ci skip] More asset guide touch ups 2019-04-17 01:22:34 +02:00
soartec-lab
ab123a33d2 Guide updated in line with changes in rails commands [skip ci] 2019-04-16 23:35:36 +09:00
Nathaniel Suchy
d9f1cc05b5 Update links and code examples in the guides to use HTTPS where the host supports it. 2019-03-06 15:21:07 -05:00
Ryuta Kamizono
713cee01a5 Fix typo a -> an, an -> a [ci skip] 2019-02-11 17:03:10 +09:00
Mariusz Błaszczak
4ee062fbf2 Rename header of the gzip paragraph to more accurate and add short info aboaut what to do about serving gziped files [ci skip] 2018-12-21 10:16:52 +01:00
Alberto Almagro
9b1da318d9 Fully remove duplicated upgrade information [ci skip]
On #34261 we removed the whole upgrade section. This warning is also
included in the Upgrade guides [here](https://github.com/rails/rails/blame/master/guides/source/upgrading_ruby_on_rails.md#L1390)
and should also be removed.
2018-10-23 19:10:08 +02:00
Matilda Smeds
317f465542 Remove "Upgrading Old Versions" from Asset Pipeline Guide [skip ci]
* How to upgrade Rails 2.x/3.2 not relevant for this Guide
* All configuration changes are already included in Upgrading Ruby on Rails Guide
2018-10-19 19:28:14 +03:00
Prathamesh Sonpatki
e8546aba90 Update the docs now that webpacker is default [ci skip] 2018-10-03 00:03:16 +05:30
Matthew Draper
ec387c6dd9
Merge pull request #33229 from albertoalmagro/albertoalmagro/prefer-rails-command-over-bin-rails
Prefer rails command over bin/rails
2018-07-25 04:10:29 +09:30
Paul McMahon
7b9c19d94b Rails guides are now served over https
http links will be redirected to the https version, but still better to
just directly link to the https version.
2018-07-24 11:29:31 +09:00
Alberto Almagro
2e194d0c9e Substitute references to task for command
This commit substitutes references to rails/rake task for rails command
2018-07-06 22:46:54 +02:00
Alberto Almagro
40b209db53 Recommend use of rails over bin/rails
As discussed in #33203 rails command already looks for, and runs,
bin/rails if it is present.

We were mixing recommendations within guides and USAGE guidelines,
in some files we recommended using rails, in others bin/rails and
in some cases we even had both options mixed together.
2018-07-06 22:46:35 +02:00
Anthony Crumley
258670244d Added a lot of Oxford commas
[ci skip] A regular expression was used to find a lot of missing Oxford
commas and add them.  The regular expression was as follows.

", ([a-zA-Z0-9.\`:'\"]+ ){1,6}(or|and) "
2018-05-10 12:46:06 -05:00
Paul
319248c049
Correct docs on naming of sprockets manifest file
Calling this an MD5 implies that it is generated consistently based on some input.
However, this value is [completely random](fbe6e450b6/lib/sprockets/manifest_utils.rb (L11-L24)).
2018-04-17 12:29:24 -07:00
Yauheni Dakuka
f1b1494484 Fix note marks [ci skip] 2018-03-12 15:36:26 +03:00
Daniel Colson
091806388a Remove out-of-date references to jQuery
Fixes #31703
2018-01-28 15:36:30 -05:00
Yauheni Dakuka
b6baf0c884 Cosmetic changes [ci skip] 2017-11-30 09:35:26 +03:00
Yauheni Dakuka
de2afdc457 Cosmetic fixes [ci skip] 2017-10-06 09:02:56 +03:00
Yoshiyuki Hirano
9b917789fa Update link in The Asset Pipeline guide [ci skip] 2017-09-21 08:08:04 +09:00
Yoshiyuki Hirano
bf48e90e69 Use https instead of http in guide [ci skip] 2017-08-23 09:39:45 +09:00
Yoshiyuki Hirano
948c2c48df Use ssl in guide and comment [ci skip] 2017-08-19 08:23:37 +09:00
Leandro Lourenci
794d0e669e Fix asset pipeline guide [skip ci] 2017-08-14 17:15:34 -03:00
Vipul A M
019c7f92f0 Remove references to deprecared raise_runtime_errors from documentation, which is always enabled now. Ref: 655b93bffc and https://github.com/rails/rails/pull/24070 . Fixes #29483 [ci skip] (#29484) 2017-06-17 03:05:37 +05:30
Koichi ITO
116b70ca7d Change default application.js included in new Rails app [ci skip] 2017-06-03 17:32:30 +09:00
Sam
6cc153959a Replace therubyracer with mini_racer 2017-05-30 09:14:00 -04:00
marvin
5a09b3fd6b Fix asset_pipeline docs incorrect image dir info 2017-03-16 19:42:00 +08:00
Vitali Tatarintev
7718d470e9 [ci skip] Update Guides to use macOS instead of Mac OS X 2017-02-20 15:12:51 +01:00
kenta-s
750c452f63 Fix typo in asset_pipeline.md [ci skip] 2017-01-05 12:42:35 +09:00
Zach Ahn
8e311940ef Update asset fingerprinting information
- Replaced MD5 => SHA256 where necessary
- Updated sprockets manifest example

See: dd9b3b53c0/lib/sprockets.rb (L26)
2016-12-23 20:23:07 -05:00
Tom Prats
dd66493d70 Updated Sprockets Documentation 2016-11-17 18:18:14 -05:00
schneems
e1791d1dd4 Explicitly mention defaults. 2016-08-29 13:16:07 -05:00
schneems
581d9685ea Fix asset_pipeline.md miss-merge 2016-08-29 13:16:07 -05:00
schneems
b6b4d6980b Specify version of Sprockets-rails this will be in 2016-08-29 13:16:07 -05:00
schneems
8126c7c2f7 [ci skip] asset_pipeline.md assets.unknown_asset_fallback 2016-08-29 13:16:07 -05:00
Vijay Dev
3e2be0bf14 Merge branch 'master' of github.com:rails/docrails 2016-08-21 10:48:53 +00:00
Jon Atack
b4c92be471 Consistent examples and template for assets#precompile
Listening to a few developers today discussing their troubles in understanding how to use the asset pipeline, it turns out that the precompile examples in the guides and assets.rb template have over time become a bit inconsistent.

This PR makes the examples consistent in code style, spacing, and asset names, removes the old 'swfObject.js' example, and in a couple of places wraps lines at 80 characters including in the assets.rb template.

Re-add spaces inside array parentheses.
2016-08-19 22:24:54 +02:00
Vipul A M
18e599940a
When referring to Rails, be consistent in usage of capitalized form, unless it is used in context of a command like bin/rails or the rails directory [ci skip] 2016-08-19 14:17:07 +05:30
Vijay Dev
83ecf3fe56 Merge branch 'master' of github.com:rails/docrails
Conflicts:
	guides/source/configuring.md
2016-05-14 09:54:23 +00:00
Vipul A M
9f525e87ab
This config still applies for Rails 4 Apps and we need to mention it, what was needed before. [ci skip] 2016-05-11 02:50:30 +05:30
Prathamesh Sonpatki
4ac4421afd
Asset Pipeline: Remove outdated comment about config.assets.digest [ci skip] 2016-05-08 18:50:42 -04:00
Prathamesh Sonpatki
d4530c9c90
Asset pipeline: Remove documentation about outdated config.assets.compress option
[ci skip]
2016-05-08 18:50:42 -04:00
Connor Shea
90eb3746b2 Fix typos in asset_pipeline.md [ci skip]
Per discussion in #24786.
2016-04-29 12:27:27 -06:00
Vipul A M
4a5bef22da Document config.assets.gzip flag. Follow up of https://github.com/rails/sprockets-rails/pull/342.
[ci skip]
2016-04-29 22:53:59 +05:30
Scott Bronson
bcad7cebd4 remove Rails 4 text from asset pipeline guide 2016-03-18 16:19:25 -07:00
Ryuta Kamizono
7fc10468b6 Remove needless break; [ci skip] 2016-03-10 18:09:01 +09:00
yuuji.yaginuma
722227a6f6 remove config that are no longer needed in sprockets-rails 3
`config.assets.raise_runtime_errors` and `config.assets.digest` are enabled
by default in sprockets-rails 3.
2016-03-05 12:14:48 +09:00
Sam Stephenson
7225f0bb9f Switch to data-turbolinks-track="reload" 2016-02-23 17:55:32 -06:00
Tom von Schwerdtner
1a61496ae5 Use correct path in documentation.
s/config\/production/config\/environments\/production/

[ci skip]
2016-02-12 13:53:18 -05:00
Prathamesh Sonpatki
abef3c2b0d Remove references to Rails 4 from assets guide [ci skip] 2016-02-08 08:57:02 +05:30