rails/guides/source
Ian C. Anderson fbaa5e390f i18n documentation for required belongs_to message
When you don't explicitly provide `optional: true` to a `belongs_to`
definition, rails adds a validation to ensure presence of the
`belongs_to` validation.

However, when the validation is added, it is added with a message key of
`:required`, which was not documented in the "Translations for Active
Record Models" section of the i18n guides.

Here are the lines that add the `:required` message:
c3e3577f9d/activerecord/lib/active_record/associations/builder/belongs_to.rb (L136-L138)

This commit adds the "non-optional association" validation to the table,
so rails users know how to override the message for this validation. The
default message is "must exist".
2016-08-17 18:19:59 -04:00
..
kindle Fixed unclosed tags in kindle guide source [ci skip] 2015-09-19 12:15:34 +05:30
_license.html.erb
_welcome.html.erb let the guides home point to the new release series endpoints [ci skip] 2015-09-18 12:27:31 -07:00
2_2_release_notes.md [ci skip] Update redirecting links in guides 2016-07-12 20:12:24 +09:00
2_3_release_notes.md [ci skip] Fix broken URL in guides 2016-08-05 17:00:37 -07:00
3_0_release_notes.md [ci skip] Fix broken URL in guides 2016-08-05 17:00:37 -07:00
3_1_release_notes.md Fix broken link in 'Ruby on Rails 3.1 Release Notes' [ci skip] 2016-04-08 16:09:12 +02:00
3_2_release_notes.md Replace an UNIQUE with a UNIQUE as UNIQUE doesn't have a vowel sound [ci skip] 2015-10-07 23:05:01 +05:30
4_0_release_notes.md Fix broken link in 'Ruby on Rails 4.0 Release Notes' [ci skip] 2016-04-15 13:15:03 +02:00
4_1_release_notes.md
4_2_release_notes.md [ci skip] Update redirecting links in guides 2016-06-06 08:32:59 -05:00
5_0_release_notes.md Fix link in Rails 5.0 Release Note [ci skip] 2016-08-17 12:43:52 +09:00
action_cable_overview.md [ci skip] Fix documentation wrong for ActionCable 2016-08-12 00:29:20 +08:00
action_controller_overview.md Setup default session store internally, no longer through an application initializer 2016-07-17 19:45:51 +05:30
action_mailer_basics.md remove -t option from default sendmail arguments [ci skip] 2016-07-06 18:57:53 +09:00
action_view_overview.md Fix documentation for number_with_precision helper in AV guide [ci skip] 2016-07-06 10:45:09 +05:30
active_job_basics.md Changed ActiveJob::Base to ApplicationJob in the Active Job guide [ci skip] 2016-06-13 09:48:12 +05:30
active_model_basics.md Minor doc fix related to ActiveModel::SecurePassword [ci skip] 2016-08-11 01:55:45 +05:30
active_record_basics.md [ci skip] Update redirecting links in guides 2016-07-12 20:12:24 +09:00
active_record_callbacks.md [skip ci] Fix typo and simplify after_commit example 2016-06-14 14:45:43 +02:00
active_record_migrations.md Update references generation docs to exclude index 2016-07-16 05:23:17 -04:00
active_record_postgresql.md Example had results the wrong way round [ci skip] 2016-06-16 08:54:26 +12:00
active_record_querying.md Document know limitation about using references in conjunction with eager loading causing it to ignore custom select clauses. 2016-08-09 14:14:53 +05:30
active_record_validations.md Correct usage for acceptance validator in guide 2016-08-02 11:24:09 +01:00
active_support_core_extensions.md Merge branch 'master' of github.com:rails/docrails 2016-08-02 17:38:56 +00:00
active_support_instrumentation.md add headers to payload list [ci skip] 2016-03-13 09:40:38 +09:00
api_app.md Pass over API Apps guide grammar. [ci skip] 2016-05-16 02:56:14 +05:30
api_documentation_guidelines.md [ci skip] correction in command for generating api documentation 2016-06-20 09:20:28 -07:00
asset_pipeline.md Merge branch 'master' of github.com:rails/docrails 2016-05-14 09:54:23 +00:00
association_basics.md Docs: Clarify when assoc. methods persist 2016-05-26 17:05:32 -04:00
autoloading_and_reloading_constants.md autoloading guide: specify autoload paths are set when the app boots [ci skip] 2016-05-26 07:42:31 +02:00
caching_with_rails.md Add documentation for http_cache_forever. [ci skip] 2016-08-10 20:27:29 +05:30
command_line.md Merge branch 'master' of github.com:rails/docrails 2016-08-02 17:38:56 +00:00
configuring.md Fix the documentation for configuring enable_fragment_cache_logging [ci skip] 2016-08-14 18:15:46 +08:00
contributing_to_ruby_on_rails.md Merge pull request #25278 from mechanicles/fix-link 2016-06-04 10:46:41 -04:00
credits.html.erb [ci skip] Remove Pratik Naik from Rails core team info. 2016-06-04 19:59:55 +05:30
debugging_rails_applications.md Add link to 'Pry' in debugging guide [ci skip] 2016-08-07 21:47:27 +03:00
development_dependencies_install.md remove old-dead link 2016-03-27 09:19:56 +00:00
documents.yaml Mark Testing Guide as pubished and reword the title[ci skip] 2016-06-30 12:56:47 -07:00
engines.md [skip ci] Make header bullets consistent in engines.md 2016-06-02 21:26:53 -05:00
form_helpers.md remove deprecated datetime_field from guide [ci skip] 2016-04-03 07:57:50 +09:00
generators.md cherry-pick test and source doc from #20050 2015-06-25 15:25:49 +09:00
getting_started.md Fix #26187 2016-08-17 15:28:54 +02:00
i18n.md i18n documentation for required belongs_to message 2016-08-17 18:19:59 -04:00
index.html.erb
initialization.md update doc for prefer require_relative over require + File.expand_path [ci skip] 2016-07-07 01:54:57 +05:30
layout.html.erb - Update Syntax Highlighter to version 4. 2016-07-03 00:20:27 -07:00
layouts_and_rendering.md Update the rendering guide to match the current behavior 2016-03-05 20:07:27 -03:00
maintenance_policy.md Add 4.2.Z back to the maintenance list 2016-08-02 17:07:01 -03:00
nested_model_forms.md ApplicationRecord documentation pass 2015-12-17 11:56:35 +01:00
plugins.md rails -> Rails [ci skip] 2016-07-12 12:21:36 +05:30
profiling.md
rails_application_templates.md Add tick marks + small grammar change 2016-05-17 22:46:07 -04:00
rails_on_rack.md update doc for prefer require_relative over require + File.expand_path [ci skip] 2016-07-07 01:54:57 +05:30
routing.md Light grammar edits to beginning of Routing guide 2016-05-18 09:07:01 -04:00
ruby_on_rails_guides_guidelines.md Update instructions to build guides locally [ci skip] 2015-04-28 15:33:13 +03:00
security.md rails -> Rails [ci skip] 2016-07-12 12:21:36 +05:30
testing.md add missing braces [ci skip] 2016-07-16 10:56:28 +09:00
upgrading_ruby_on_rails.md Merge pull request #26175 from stomar/upgrade-guide-fix 2016-08-16 06:56:22 -03:00
working_with_javascript_in_rails.md Minor syntax change 2016-05-10 11:34:12 -05:00