rails/guides
Dave Aronson f6b987d521
Replace repeated list literals in Getting Started guide w/ a constant (#49007)
* Replace list literals w/ Visible::VALID_STATUSES

In Getting Started guide, in the article and comment status dropdowns, use Visible::VALID_STATUSES instead of repeating the list of valid statuses.  This makes the code DRYer and more expressive.  This PR also adds a comment to that effect.

* Remove text changes, leave just code

Co-authored-by: Rafael Mendonça França <rafael@rubyonrails.org>
2023-08-25 17:14:08 -04:00
..
assets Fixing fetch image on 'back-to-top' button 2023-06-01 09:53:39 -03:00
bug_report_templates Set secret_key_base on config in bug_report_templates 2023-06-18 18:58:22 +02:00
rails_guides Update guides generation to use Nokogiri's HTML5 parser 2023-06-19 15:38:13 -04:00
source Replace repeated list literals in Getting Started guide w/ a constant (#49007) 2023-08-25 17:14:08 -04:00
.document adds guides/.document to tell rdoc not to process this directory 2013-03-04 22:28:23 +01:00
.rubocop.yml Document response.parsed_body in 7.1 release notes 2023-08-23 15:33:52 -04:00
CHANGELOG.md Adding the button using JS and styling with CSS and Image 2023-05-31 17:38:44 -03:00
rails_guides.rb Replaces mobi guide with epub for docs because of discontinued support 2022-08-05 00:18:20 +05:30
Rakefile Merge pull request #47354 from etiennebarrie/deprecate-ActiveSupport-Deprecation-usage 2023-04-06 10:20:38 -04:00
w3c_validator.rb Use frozen string literal in guides/ 2017-08-13 22:04:09 +09:00