| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
- Clarify executor of `public_send`.
- Do not wrap `Interval.all_day` into [] since
an array is expected as a returned value.
Related to #32523.
[ci skip]
|
| |
|
|\
| |
| | |
Fix testing guide typo
|
| | |
|
|/
|
|
|
| |
`Rails.application.config.assets.unknown_asset_fallback` now defaults to `false` in an unmodified Rails application.
[ci skip]
|
|\
| |
| |
| |
| | |
ybakos/guides/layouts_and_rendering_class_spelling_fix
Capitalize class name 'Product' in layouts and rendering guide.
|
| |
| |
| |
| |
| | |
In this context, the phrase 'product instance' refers to the Product class,
so capitalize it.
|
|/
|
|
|
| |
The prior sentence is referring just to an existing user object, so
the sudden magical 'Current.' prefix doesn't make sense. Remove it.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
[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) "
|
| |
|
|\
| |
| | |
Add option to ActiveStorage::Blob to set extract_content_type_from_io
|
| |
| |
| |
| |
| |
| |
| | |
This adds a boolean argument called identify to ActiveStorage::Blob
methods #create_after_upload, #build_after_upload and #upload. It
allows a user to bypass the automatic content_type inference from
the io.
|
| |
| |
| |
| | |
The prefix of `new` and `edit` generated by `resources` is singular.
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Once all technicalities have been introduced, the purpose of this
paragraph is to precisely unroll expressions like "the String class".
That way, the reader is forced to clearly separate concepts that Ruby
programmers often have kind of blurred:
* Constants are storage, like variables.
* Ruby does not have syntax for class or module names.
* `String` is a regular constant that holds a value. In this case, the
value happens to be a class object.
* Constants are stored in class and module objects. In the case of
`String`, the holder is the class object stored in the `Object`
constant.
Understanding that paragraph the way is written is important to
accomplish this objective.
References #32818.
|
| |
|
|\
| |
| | |
Remove confusion in the sentence [ci skip]
|
| | |
|
| |
| |
| |
| |
| |
| | |
Fix spelling, grammar, and formatting.
[ci skip]
|
|/
|
|
| |
weblog.jamisbuck.org is not GitHub Pages.
|
| |
|
|\
| |
| | |
Document rails new <app> storage folder
|
| |
| |
| |
| |
| | |
[ci skip] Active Storage now adds a storage folder to newly generated
rails applications.
|
|/
|
|
| |
[ci skip]
|
| |
|
| |
|
| |
|
|\
| |
| | |
[ci skip] update ActiveStorage documentation
|
| |
| |
| |
| |
| |
| |
| |
| | |
- added documentation on how to download files, with example of
ActiveStorage::Downloading
- documentation about linking files outside of controller/view
- added section about DirectUpload JavaScript integration into
libraries/frameworks, as well as usage in combination with Drag and Drop
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
(#32740)
* Adding precision about which letter case to use for controller names in routing
Many people (including myself) encounter an error when having multiple words controller names and trying to put camelCase in their routes
|
| |
| |
| |
| |
| |
| | |
* Update 'rails_welcome.png' to reflect a more diverse population
* Cleanup 'rails_welcome.png'
|
|\ \
| | |
| | | |
Fix title for example of removing data from `session` [ci skip]
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
After #31685 the description says different what
we expect to see in the example. Change `assign that key to be nil` to
`or delete the key/value pair` in order to highlight what is shown in the example.
Fix one more example of removing data from the session in favour of using
`delete` since assigning to `nil` doesn't delete key from it.
|
| | |
| | |
| | |
| | | |
Introduced in #32646
|
|\ \ \
| | | |
| | | | |
Update schema.rb documentation [CI SKIP]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The documentation previously claimed that `db/schema.rb` was "the
authoritative source for your database schema" while simultaneously
also acknowledging that the file is generated. These two statements are
incongruous and the guides accurately call out that many database
constructs are unsupported by `schema.rb`. This change updates the
comment at the top of `schema.rb` to remove the assertion that the file
is authoritative.
The documentation also previously referred vaguely to "issues" when
re-running old migrations. This has been updated slightly to hint at the
types of problems that one can encounter with old migrations.
In sum, this change attempts to more accurately capture the pros, cons,
and shortcomings of the two schema formats in the guides and in the
comment at the top of `schema.rb`.
[Derek Prior & Sean Griffin]
Co-authored-by: Sean Griffin <sean@seantheprogrammer.com>
|
|\ \ \ \
| |_|/ /
|/| | | |
Use ImageProcessing gem for ActiveStorage variants
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
ImageProcessing gem is a wrapper around MiniMagick and ruby-vips, and
implements an interface for common image resizing and processing. This
is the canonical image processing gem recommended in [Shrine], and
that's where it developed from. The initial implementation was extracted
from Refile, which also implements on-the-fly transformations.
Some features that ImageProcessing gem adds on top of MiniMagick:
* resizing macros
- #resize_to_limit
- #resize_to_fit
- #resize_to_fill
- #resize_and_pad
* automatic orientation
* automatic thumbnail sharpening
* avoids the complex and inefficient MiniMagick::Image class
* will use "magick" instead of "convert" on ImageMagick 7
However, the biggest feature of the ImageProcessing gem is that it has
an alternative implementation that uses libvips. Libvips is an
alternative to ImageMagick that can process images very rapidly (we've
seen up 10x faster than ImageMagick).
What's great is that the ImageProcessing gem provides the same interface
for both implementations. The macros are named the same, and the libvips
implementation does auto orientation and thumbnail sharpening as well;
only the operations/options specific to ImageMagick/libvips differ. The
integration provided by this PR should work for both implementations.
The plan is to introduce the ImageProcessing backend in Rails 6.0 as the
default backend and deprecate the MiniMagick backend, then in Rails 6.1
remove the MiniMagick backend.
|
| |_|/
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Remove key from session by using session.delete
You are not deleting a key from session when you assign nil to that key.
* Update guides on how to destroy a user session
In this commit, the user id is removed from session and controller's variables related to the user are nullified.
[Rafael Mendonça França + Rafael Barbolo]
|
|\ \ \
| | | |
| | | | |
Update results of command in Testing guides [ci skip]
|
| | | |
| | | |
| | | |
| | | |
| | | | |
* Results of command in testing guides are different from actual ones.
* Updated them.
|