aboutsummaryrefslogtreecommitdiffstats
path: root/guides
Commit message (Collapse)AuthorAgeFilesLines
* remove deprecated `assert_send` from assertion list [ci skip]yuuji.yaginuma2016-12-091-1/+0
| | | | | `assert_send` was deprecated in minitest 5.10.0. Ref: https://github.com/seattlerb/minitest/commit/f95ef007ec64d956d88fedc37fd2ed7e106b777e
* stop using removed `render :text`yuuji.yaginuma2016-12-031-1/+1
| | | | Follow up to 79a5ea9eadb4d43b62afacedc0706cbe88c54496
* Fixes #27202, [ci skip]utilum2016-11-301-2/+0
|
* Fix typo in Rails 5.0 release notes – “when when”Rory O’Kane2016-11-291-1/+1
| | | [ci skip]
* Add note about step needed to get tests to pass if you implemented basic ↵JessRudder2016-11-281-0/+7
| | | | auth [ci skip]
* fix: solves issue#27189jnoortheen2016-11-271-3/+4
|
* Followup of UUID default extension in the docs [ci skip]Prathamesh Sonpatki2016-11-241-1/+1
| | | | | | | - Mentioned clearly that for PostgreSQL < 9.4, you need to pass the default option with "uuid_generate_v4()" - Also updated PostgreSQL Active Record guide with this change. - https://github.com/rails/rails/pull/25395#r66877078
* Merge pull request #27143 from sachin21/fix-permissionMatthew Draper2016-11-221-0/+0
|\ | | | | Fix a wrong permission
| * Fix a wrong permissionSatoshi Ohmori2016-11-221-0/+0
| |
* | Change html-scanner to rails-html-sanitizerJon Moss2016-11-191-1/+1
| | | | | | | | [ci skip]
* | Updated Sprockets DocumentationTom Prats2016-11-171-21/+11
| |
* | Remove mention of deprecated SafeERB gem from security docs for now, prior ↵Vipul A M2016-11-181-1/+1
| | | | | | | | | | section already speaks about sanitization as a safety measure. [ci skip] (#27086) Fixes #27085
* | remove `alias_method_chain` from guide [ci skip]yuuji.yaginuma2016-11-151-50/+0
| | | | | | | | Follow up to 7c848e6dd493ff236d33a0410a92f4c3e5cc3c7f
* | Fix small typo in Layouts and Rendering guide. [ci skip]Conrad Beach2016-11-141-1/+1
| | | | | | Changed "same way they do" to "same way they are".
* | Merge pull request #26905 from bogdanvlviv/docsAndrew White2016-11-131-1/+1
|\ \ | | | | | | Add missing `+` around a some literals.
| * | Add missing `+` around a some literals.bogdanvlviv2016-10-271-1/+1
| | | | | | | | | | | | | | | | | | Mainly around `nil` [ci skip]
* | | adds support for arbitrary hashes in strong parametersXavier Noria2016-11-111-3/+15
| | |
* | | Update guides/source/active_record_querying.mdbogdanvlviv2016-11-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Add info about updating locking column value Follow #26050 and #26871 [ci skip]
* | | [ci skip] Expand context on `:cache_hits`.Kasper Timm Hansen2016-11-081-5/+7
| | | | | | | | | | | | Need to explain the key is only there in certain cases.
* | | [ci skip] Add `render_collection.action_view` entry to AS instrumentationyui-knk2016-11-081-0/+16
| | |
* | | Merge pull request #26982 from bogdanvlviv/started_guideKasper Timm Hansen2016-11-071-2/+2
|\ \ \ | | | | | | | | Fix 'Getting Started with Rails' [ci skip]
| * | | Fix 'Getting Started with Rails' [ci skip]bogdanvlviv2016-11-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `bin/rails generate controller Comments` creates files app/assets/javascripts/comments.coffee app/assets/stylesheets/comments.scss not app/assets/javascripts/comment.coffee app/assets/stylesheets/comment.scss
* | | | Add missing spaces [ci skip]bogdanvlviv2016-11-071-2/+2
|/ / /
* | | Use local variable instead of instance variable [ci skip]Daniel Amireh2016-11-051-1/+1
| | | | | | | | | Update render yield docs to use `search` local variable instead of `@q` instance variable
* | | fix typo in Rails Test Runner sectioncolleenmcguckin2016-10-311-2/+2
| | |
* | | Remove `Rack::Runtime from console log [ci skip]Shia2016-10-311-1/+0
| | |
* | | Add missing space in Migrations guide [ci skip]Benny2016-10-311-1/+1
| | |
* | | Merge pull request #26932 from y-yagi/update_doc_about_assets_digestJon Moss2016-10-291-2/+2
|\ \ \ | | | | | | | | update doc about assets digest class [ci skip]
| * | | update doc about assets digest class [ci skip]yuuji.yaginuma2016-10-301-2/+2
| | | | | | | | | | | | | | | | | | | | The default digest class changed to SHA256 in sprockets 3.0. Ref: https://github.com/sstephenson/sprockets/pull/647
* | | | Add more rubocop rules about whitespacesRafael Mendonça França2016-10-2910-13/+13
|/ / /
* | | Add documentation for `config.assets.version` [skip ci]Erol Fornoles2016-10-281-0/+2
| | |
* | | fix initializer name [ci skip]yuuji.yaginuma2016-10-271-1/+1
| | | | | | | | | | | | This changed in c046660
* | | Update HABTM documentation in guidesJames Doyley2016-10-261-3/+1
| | |
* | | Merge pull request #26851 from Gaurav2728/update-kindlerbRafael França2016-10-251-1/+1
|\ \ \ | | | | | | | | update kindlerb gem
| * | | update kindlerb gemGaurav Sharma2016-10-211-1/+1
| | | | | | | | | | | | Ruby Kindle periodical-format ebook generator
* | | | Fix HTML escaping in the guidesRafael Mendonça França2016-10-252-2/+2
| |/ / |/| | | | | | | | render :html escapes the argument if not provided as html safe.
* | | Fix indentationRafael Mendonça França2016-10-251-1/+1
| | |
* | | Generate HTML not plain textRafael Mendonça França2016-10-251-1/+1
| | |
* | | Fix plain option in the rails_guides generatorRafael Mendonça França2016-10-251-1/+1
| | |
* | | Fix typo in Upgrading Ruby on Rails Guide [ci skip]Erol Fornoles2016-10-241-1/+1
| | |
* | | update description of Etag [ci skip]yuuji.yaginuma2016-10-241-1/+4
| | | | | | | | | | | | | | | | | | The document is written with "only generate weak", but it can also be used to strong etag. Also, add missing entory for #24387
* | | Merge release note entry for Date/Time/DateTime extensionsCarlos Antonio da Silva2016-10-231-4/+2
|/ / | | | | | | | | | | The first release note entry mentioned #on_weekday?, but that was only added by the second PR mentioned there. To simplify reading the notes just merge the two, since they are related methods. [ci skip]
* | guides, include note about modifiers when using the CLI.Yves Senn2016-10-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | [ci skip] This was pointed out on https://github.com/rails/rails/issues/15583#issuecomment-239212831 The comment was lost in the changes made by fcd0ac066e0959a9f4fa4459a27e041abe8eb52a and 3e1373a773085d5f19cb6a466ab2736cc1ca2713
* | remove trailing whitespace [ci skip]Yves Senn2016-10-201-8/+8
| |
* | [ci skip] Fix return values of Hash Extensions examplesBruno Facca2016-10-201-4/+4
| | | | | | | | | | | | | | | | The hashes returned in some examples of the following sections had items in a different order than their receivers. That may mislead readers into believing those methods will not preserve element order. Extensions to Hash/Working with Keys/transform_keys and transform_keys! Extensions to Hash/Working with Keys/stringify_keys and stringify_keys! Extensions to Hash/Working with Keys/symbolize_keys and symbolize_keys! Extensions to Hash/Slicing
* | [ci skip] Fix typo in Guides: ContributingAlex Kitchens2016-10-171-1/+1
| |
* | Pull request for ticket 26769 (#26770)rmarone2016-10-151-1/+1
| | | | | | | | | | | | * Clarify the default behavior of log_formatter Updates language to remove reference to production.rb and fix quoting
* | Introduce a benchmark template [ci skip]Godfrey Chan2016-10-152-27/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces boilerplate in the “benchmark your code” section of the contributors’ guide with an executable template. I also amended the text to encourage best practices and codified it in the template. For now this is only good for relatively self-contained changes that can be inlined into a simple script. In the future, this can be expanded to cover how to measure the difference between two commits. The output looks like this: ``` ==================================== Empty ===================================== Warming up -------------------------------------- blank? 225.963k i/100ms fast_blank? 238.147k i/100ms Calculating ------------------------------------- blank? 8.825M (± 6.4%) i/s - 44.063M in 5.014824s fast_blank? 9.311M (± 6.3%) i/s - 46.439M in 5.009153s Comparison: fast_blank?: 9310694.8 i/s blank?: 8824801.7 i/s - same-ish: difference falls within error ================================= Single Space ================================= Warming up -------------------------------------- blank? 56.581k i/100ms fast_blank? 232.774k i/100ms Calculating ------------------------------------- blank? 813.985k (±16.7%) i/s - 4.017M in 5.076576s fast_blank? 9.547M (± 5.2%) i/s - 47.719M in 5.013204s Comparison: fast_blank?: 9547414.0 i/s blank?: 813985.0 i/s - 11.73x slower ================================== Two Spaces ================================== Warming up -------------------------------------- blank? 58.265k i/100ms fast_blank? 244.056k i/100ms Calculating ------------------------------------- blank? 823.343k (±16.2%) i/s - 4.020M in 5.014213s fast_blank? 9.484M (± 4.9%) i/s - 47.347M in 5.005339s Comparison: fast_blank?: 9484021.6 i/s blank?: 823343.1 i/s - 11.52x slower =============================== Mixed Whitspaces =============================== Warming up -------------------------------------- blank? 53.919k i/100ms fast_blank? 237.103k i/100ms Calculating ------------------------------------- blank? 763.435k (±16.8%) i/s - 3.720M in 5.018029s fast_blank? 9.672M (± 5.8%) i/s - 48.369M in 5.019356s Comparison: fast_blank?: 9672467.2 i/s blank?: 763435.4 i/s - 12.67x slower =============================== Very Long String =============================== Warming up -------------------------------------- blank? 34.037k i/100ms fast_blank? 240.366k i/100ms Calculating ------------------------------------- blank? 409.731k (± 8.9%) i/s - 2.042M in 5.028235s fast_blank? 9.794M (± 4.3%) i/s - 49.035M in 5.016328s Comparison: fast_blank?: 9794225.2 i/s blank?: 409731.4 i/s - 23.90x slower ```
* | Suggested editsJavier Cuevas2016-10-131-3/+3
| |
* | Improve Action Cable Overview guideJavier Cuevas2016-10-131-3/+3
| | | | | | The default adapter in development & test environments is not `redis` but `async`.