aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/engines.md
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #35908 from soartec-lab/update_guide_engine_app_dirRafael França2019-04-111-3/+25
|\ | | | | Add all descriptions in app directory [skip ci]
| * Add all descriptions in app directory [skip ci]soartec-lab2019-04-091-3/+25
| |
* | Merge pull request #35938 from soartec-lab/update_guide_engine_sample_codeRafael França2019-04-111-14/+17
|\ \ | | | | | | Use modele to generate generated defaults [skip ci]
| * | Use modele to generate generated defaults [skip ci]soartec-lab2019-04-111-14/+17
| | |
* | | Merge pull request #35945 from soartec-lab/update_guide_engine_sample_code_blockRafael França2019-04-111-1/+3
|\ \ \ | | | | | | | | Code is enclosed by code block [skip ci]
| * | | Code is enclosed by code block [skip ci]soartec-lab2019-04-121-1/+3
| |/ /
* / / Updated the description of `add_development_dependency` [skip ci]soartec-lab2019-04-121-1/+1
|/ /
* / Update the result of generate command [skip ci]soartec-lab2019-04-111-14/+6
|/
* Update configuration of `app` directory and use oxford comma [skip ci]soartec-lab2019-04-091-2/+2
|
* Add load hook for ActiveStorage::AttachmentGeorge Claghorn2019-03-281-0/+1
|
* Update links and code examples in the guides to use HTTPS where the host ↵Nathaniel Suchy2019-03-061-1/+1
| | | | supports it.
* Add ActionCable channel/connection load hooksVladimir Dementyev2019-01-291-0/+2
|
* Remove Decorator pattern in Overriding existing classes examplesMaurizio De Santis2019-01-161-11/+10
| | | | | | | | | | | | | Engines guide in the Overriding Models and Controllers section references the Decorator pattern, which isn't appropriate, since Decorator pattern is not about reopening existing classes, is about adding functionality to existing object instances; something that in Ruby is commonly implemented using Delegators. Moreover, the suggested naming convention for overrides, `app/decorators/**/*_decorator*.rb`, conflicts with a naming convention commonly used for View Model / Presentation Model decorators, adopted by popular gems such as `draper`, as well as by custom implementations.
* Add load hook for ActionText::RichTextGeorge Claghorn2019-01-071-0/+1
|
* Add `action_text_content` hook to the guide [ci skip]bogdanvlviv2019-01-051-0/+1
| | | | See actiontext/lib/action_text/content.rb:132
* Add load hook for ActionMailbox::TestCaseGeorge Claghorn2018-12-311-0/+1
|
* Update the load hooks reference table [ci skip]George Claghorn2018-12-311-0/+3
|
* Merge pull request #33229 from ↵Matthew Draper2018-07-251-16/+16
|\ | | | | | | | | albertoalmagro/albertoalmagro/prefer-rails-command-over-bin-rails Prefer rails command over bin/rails
| * Recommend use of rails over bin/railsAlberto Almagro2018-07-061-16/+16
| | | | | | | | | | | | | | | | | | 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.
* | Rails guides are now served over httpsPaul McMahon2018-07-241-1/+1
| | | | | | | | | | http links will be redirected to the https version, but still better to just directly link to the https version.
* | Specify location for engine-specific commandsKevin Ndung'u Gathuku2018-07-041-0/+3
|/ | | | | | Be more specific when pointing out where the commands relating to the engine should be run [ci skip]
* Change location for running copy migrations commandKevin Ndung'u Gathuku2018-05-251-1/+1
| | | | This fixes the location from where the command to copy migrations from the engine to the application should be run [ci skip]
* Added a lot of Oxford commasAnthony Crumley2018-05-101-5/+5
| | | | | | | [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) "
* Clarify that config.eager_load controls eager loading [ci skip]Eugene Kenny2017-12-301-6/+6
| | | | | | | Before Rails 4.0, `config.cache_classes` determined whether application code was eager loaded. The `config.eager_load` option was introduced to allow the two behaviours to be configured independently, but this documentation was never updated to reflect that change.
* fix comma splice [ci skip]Ashley Engelund (weedySeaDragon @ github)2017-11-261-1/+1
|
* verb tense correction [ci skip]Ashley Engelund (weedySeaDragon @ github)2017-11-261-1/+1
|
* gendered wording not necessary; changed to neutral [ci skip]Ashley Engelund (weedySeaDragon @ github)2017-11-261-1/+1
|
* Add load hook for `ActionDispatch::SystemTestCase`yuuji.yaginuma2017-10-281-0/+1
| | | | | | | | This is useful to extend `SystemTestCase`. Also, since other test classes already have load hooks, should also be in `SystemTestCase`. Ref: 0510208dd1ff23baa619884c0abcae4d141fae53
* Capitalize "sprockets" in Engine guide [ci skip]Yoshiyuki Hirano2017-10-131-1/+1
|
* Use `form_with` instead of `form_for` in engine guide [ci skip]Yoshiyuki Hirano2017-10-091-6/+6
|
* Cosmetic fixes [ci skip]Yauheni Dakuka2017-10-061-1/+1
|
* Add an space to RefineryCMS in Engine guide [ci skip]Yoshiyuki Hirano2017-09-261-1/+1
| | | | | * According to the official website, it seems that "RefineryCMS" is "Refinery CMS". * See at: http://www.refinerycms.com/
* new missing backquotes [ci skip]Yauheni Dakuka2017-09-251-1/+1
|
* Add system_test logs to guide [ci skip]Yoshiyuki Hirano2017-08-161-0/+3
|
* :scissors:Rafael Mendonça França2017-04-111-1/+1
| | | | [ci skip]
* Add Documentation for Active Support On Load HooksJulian Nadeau2017-04-101-0/+112
|
* Change engines guide to demonstrate maintained forumRichard2017-02-171-1/+1
| | | | | | | Change Rails engine guide to references a maintained project Thredded instead of the abandoned project Forem. I chose Thredded as Forem's closing note (below) suggests the choice. https://github.com/rubysherpas/forem/blob/rails4/README.md
* [ci skip] Fixed commas according to Oxford comma in rdoc and guidesAndrey Molchanov2016-09-171-1/+1
|
* Minor grammar fix in engines.mdMark Sun2016-09-061-1/+1
|
* Consistent examples and template for assets#precompileJon Atack2016-08-191-1/+1
| | | | | | | | 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.
* [skip ci] Make header bullets consistent in engines.mdAlex Kitchens2016-06-021-3/+3
|
* add missing "as"Antonio Felguerez2016-06-021-1/+1
| | | it reads a bit awkwardly without it.
* Fix author callback in engines guide [ci skip]Michael Ryan2016-03-041-3/+3
| | | | | | | | The `before_save` callback used with `set_author` results in the validation error "Author must exist," due to the change in `belongs_to` behavior introduced by #18937. Use `before_validation` instead.
* [ci skip] fix suggested change-replace 'an' with 'the in Rails engine guide'kamal namdeo2016-02-181-1/+1
|
* Fix the language in engines guidekamal namdeo2016-02-181-1/+1
|
* Fix grammar `a` to `an` [ci skip]Ryuta Kamizono2016-02-131-1/+1
|
* add missing include to engine test example [ci skip]yuuji.yaginuma2016-02-051-0/+4
| | | | | Using url helper method of engine in example code, include `Engine.routes.url_helpers` is required to use helper method of engine.
* use bin/rails default instead of rake commands [ci skip]Gaurav Sharma2016-01-191-11/+11
| | | I go through the `http://edgeguides.rubyonrails.org/` and found `rake` commands in various files that are in RAILS 5.0 implement by `bin/rails` command. I try to change all that can be directly use `bin/rails …`
* Introduce ApplicationRecord, an Active Record layer supertypeGenadi Samokovarov2015-12-161-5/+5
| | | | | | | | | | | | | | | | It's pretty common for folks to monkey patch `ActiveRecord::Base` to work around an issue or introduce extra functionality. Instead of shoving even more stuff in `ActiveRecord::Base`, `ApplicationRecord` can hold all those custom work the apps may need. Now, we don't wanna encourage all of the application models to inherit from `ActiveRecord::Base`, but we can encourage all the models that do, to inherit from `ApplicationRecord`. Newly generated applications have `app/models/application_record.rb` present by default. The model generators are smart enough to recognize that newly generated models have to inherit from `ApplicationRecord`, but only if it's present.
* Remove ActionController::TestCase from documentationeileencodes2015-12-121-4/+4
| | | | | | | | | | | | | | | | | | In Rails 5.1 `ActionController::TestCase` will be moved out of Rails into it's own gem. Please use `ActionDispatch::IntegrationTest` going foward. Because this will be moved to a gem I used `# :stopdoc:` instead of deleting the documentation. This will remove it from the Rails documentation but still leave the method documented for when we move it to a gem. Guides have been updated to use the routing structure used in Integration and all test examples have been updated to inherit from `ActionDispatch::IntegrationTest` instead of `ActionController::TestCase. Fixes #22496