Skip to content

Commit 3dcaca9

Browse files
committed
Fixes mime -> MIME
1 parent f8e97a1 commit 3dcaca9

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

guides/source/2_2_release_notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ map.resources :products, :except => :destroy
267267
* Benchmarking numbers are now reported in milliseconds rather than tiny fractions of seconds
268268
* Rails now supports HTTP-only cookies (and uses them for sessions), which help mitigate some cross-site scripting risks in newer browsers.
269269
* `redirect_to` now fully supports URI schemes (so, for example, you can redirect to a svn`ssh: URI).
270-
* `render` now supports a `:js` option to render plain vanilla JavaScript with the right mime type.
270+
* `render` now supports a `:js` option to render plain vanilla JavaScript with the right MIME type.
271271
* Request forgery protection has been tightened up to apply to HTML-formatted content requests only.
272272
* Polymorphic URLs behave more sensibly if a passed parameter is nil. For example, calling `polymorphic_path([@project, @date, @area])` with a nil date will give you `project_area_path`.
273273

guides/source/5_0_release_notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ Please refer to the [Changelog][action-pack] for detailed changes.
349349
names instead.
350350
([commit](https://github.com/rails/rails/commit/83b767ce))
351351

352-
* Deprecated accessing mime types via constants (e.g. `Mime::HTML`). Use the
352+
* Deprecated accessing MIME types via constants (e.g. `Mime::HTML`). Use the
353353
subscript operator with a symbol instead (e.g. `Mime[:html]`).
354354
([Pull Request](https://github.com/rails/rails/pull/21869))
355355

guides/source/5_2_release_notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ Please refer to the [Changelog][action-pack] for detailed changes.
262262
[Commit](https://github.com/rails/rails/commit/619b1b6353a65e1635d10b8f8c6630723a5a6f1a),
263263
[Commit](https://github.com/rails/rails/commit/4ec8bf68ff92f35e79232fbd605012ce1f4e1e6e))
264264

265-
* Register most popular audio/video/font mime types supported by modern
265+
* Register most popular audio/video/font MIME types supported by modern
266266
browsers.
267267
([Pull Request](https://github.com/rails/rails/pull/31251))
268268

guides/source/asset_pipeline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ end
11731173
```
11741174

11751175
Now that you have a module that modifies the input data, it's time to register
1176-
it as a preprocessor for your mime type.
1176+
it as a preprocessor for your MIME type.
11771177

11781178
```ruby
11791179
Sprockets.register_preprocessor 'text/css', AddComment

guides/source/caching_with_rails.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ cache.
173173

174174
### Shared Partial Caching
175175

176-
It is possible to share partials and associated caching between files with different mime types. For example shared partial caching allows template writers to share a partial between HTML and JavaScript files. When templates are collected in the template resolver file paths they only include the template language extension and not the mime type. Because of this templates can be used for multiple mime types. Both HTML and JavaScript requests will respond to the following code:
176+
It is possible to share partials and associated caching between files with different MIME types. For example shared partial caching allows template writers to share a partial between HTML and JavaScript files. When templates are collected in the template resolver file paths they only include the template language extension and not the MIME type. Because of this templates can be used for multiple MIME types. Both HTML and JavaScript requests will respond to the following code:
177177

178178
```ruby
179179
render(partial: 'hotels/hotel', collection: @hotels, cached: true)
@@ -187,7 +187,7 @@ Another option is to include the full filename of the partial to render.
187187
render(partial: 'hotels/hotel.html.erb', collection: @hotels, cached: true)
188188
```
189189

190-
Will load a file named `hotels/hotel.html.erb` in any file mime type, for example you could include this partial in a JavaScript file.
190+
Will load a file named `hotels/hotel.html.erb` in any file MIME type, for example you could include this partial in a JavaScript file.
191191

192192
### Managing dependencies
193193

0 commit comments

Comments
 (0)