├── guides ├── .document ├── source │ └── kindle │ │ └── copyright.html.erb ├── assets │ ├── images │ │ ├── bullet.gif │ │ ├── book_icon.gif │ │ ├── favicon.ico │ │ ├── nav_arrow.gif │ │ ├── tab_grey.gif │ │ ├── tab_info.gif │ │ ├── tab_note.gif │ │ ├── tab_red.gif │ │ ├── edge_badge.png │ │ ├── footer_tile.gif │ │ ├── grey_bullet.gif │ │ ├── header_tile.gif │ │ ├── tab_yellow.gif │ │ ├── chapters_icon.gif │ │ ├── check_bullet.gif │ │ ├── feature_tile.gif │ │ ├── security │ │ │ ├── csrf.png │ │ │ └── session_fixation.png │ │ ├── i18n │ │ │ ├── demo_html_safe.png │ │ │ ├── demo_translated_en.png │ │ │ ├── demo_untranslated.png │ │ │ ├── demo_localized_pirate.png │ │ │ ├── demo_translated_pirate.png │ │ │ └── demo_translation_missing.png │ │ ├── rails_guides_logo.gif │ │ ├── rails_guides_logo_1x.png │ │ ├── rails_guides_logo_2x.png │ │ ├── association_basics │ │ │ ├── habtm.png │ │ │ ├── has_one.png │ │ │ ├── belongs_to.png │ │ │ ├── has_many.png │ │ │ ├── polymorphic.png │ │ │ ├── has_one_through.png │ │ │ └── has_many_through.png │ │ ├── getting_started │ │ │ ├── challenge.png │ │ │ ├── rails_welcome.png │ │ │ └── article_with_comments.png │ │ ├── rails_guides_kindle_cover.jpg │ │ ├── 4_0_release_notes │ │ │ └── rails4_features.png │ │ └── active_record_querying │ │ │ └── bookstore_models.png │ ├── javascripts │ │ └── .gitattributes │ └── stylesheets │ │ └── turbolinks.css └── CHANGELOG.md ├── RAILS_VERSION ├── actiontext ├── test │ ├── dummy │ │ ├── log │ │ │ └── .keep │ │ ├── tmp │ │ │ ├── .keep │ │ │ └── storage │ │ │ │ └── .keep │ │ ├── lib │ │ │ └── assets │ │ │ │ └── .keep │ │ ├── storage │ │ │ └── .keep │ │ ├── public │ │ │ ├── favicon.ico │ │ │ ├── apple-touch-icon.png │ │ │ └── apple-touch-icon-precomposed.png │ │ ├── app │ │ │ ├── assets │ │ │ │ ├── images │ │ │ │ │ └── .keep │ │ │ │ └── config │ │ │ │ │ └── manifest.js │ │ │ ├── models │ │ │ │ ├── concerns │ │ │ │ │ └── .keep │ │ │ │ ├── page.rb │ │ │ │ ├── application_record.rb │ │ │ │ └── review.rb │ │ │ ├── controllers │ │ │ │ └── concerns │ │ │ │ │ └── .keep │ │ │ ├── views │ │ │ │ ├── layouts │ │ │ │ │ └── mailer.text.erb │ │ │ │ ├── people │ │ │ │ │ ├── _attachable.html.erb │ │ │ │ │ └── _trix_content_attachment.html.erb │ │ │ │ ├── messages_mailer │ │ │ │ │ └── notification.html.erb │ │ │ │ └── messages │ │ │ │ │ └── new.html.erb │ │ │ ├── helpers │ │ │ │ ├── messages_helper.rb │ │ │ │ └── application_helper.rb │ │ │ ├── jobs │ │ │ │ └── application_job.rb │ │ │ ├── javascript │ │ │ │ └── packs │ │ │ │ │ └── application.js │ │ │ ├── channels │ │ │ │ └── application_cable │ │ │ │ │ ├── channel.rb │ │ │ │ │ └── connection.rb │ │ │ └── mailers │ │ │ │ └── application_mailer.rb │ │ ├── .browserslistrc │ │ ├── .postcssrc.yml │ │ ├── bin │ │ │ ├── rake │ │ │ └── bundle │ │ ├── config │ │ │ ├── webpack │ │ │ │ └── environment.js │ │ │ └── spring.rb │ │ └── config.ru │ └── fixtures │ │ ├── people.yml │ │ ├── reviews.yml │ │ ├── files │ │ └── racecar.jpg │ │ └── messages.yml ├── app │ └── views │ │ ├── action_text │ │ ├── attachables │ │ │ └── _missing_attachable.html.erb │ │ └── contents │ │ │ └── _content.html.erb │ │ └── layouts │ │ └── action_text │ │ └── contents │ │ └── _content.html.erb ├── .gitignore └── bin │ └── test ├── actionmailbox ├── test │ ├── dummy │ │ ├── log │ │ │ └── .keep │ │ ├── storage │ │ │ └── .keep │ │ ├── lib │ │ │ └── assets │ │ │ │ └── .keep │ │ ├── public │ │ │ ├── favicon.ico │ │ │ ├── apple-touch-icon.png │ │ │ └── apple-touch-icon-precomposed.png │ │ ├── app │ │ │ ├── assets │ │ │ │ ├── images │ │ │ │ │ └── .keep │ │ │ │ └── config │ │ │ │ │ └── manifest.js │ │ │ ├── models │ │ │ │ ├── concerns │ │ │ │ │ └── .keep │ │ │ │ └── application_record.rb │ │ │ ├── controllers │ │ │ │ ├── concerns │ │ │ │ │ └── .keep │ │ │ │ └── application_controller.rb │ │ │ ├── javascript │ │ │ │ └── packs │ │ │ │ │ └── application.js │ │ │ ├── views │ │ │ │ └── layouts │ │ │ │ │ └── mailer.text.erb │ │ │ ├── helpers │ │ │ │ └── application_helper.rb │ │ │ ├── jobs │ │ │ │ └── application_job.rb │ │ │ ├── mailboxes │ │ │ │ └── messages_mailbox.rb │ │ │ ├── channels │ │ │ │ └── application_cable │ │ │ │ │ ├── channel.rb │ │ │ │ │ └── connection.rb │ │ │ └── mailers │ │ │ │ └── application_mailer.rb │ │ ├── .postcssrc.yml │ │ ├── bin │ │ │ ├── rake │ │ │ └── bundle │ │ ├── config │ │ │ ├── initializers │ │ │ │ └── secret_token.rb │ │ │ ├── webpack │ │ │ │ ├── environment.js │ │ │ │ ├── test.js │ │ │ │ ├── production.js │ │ │ │ └── development.js │ │ │ └── spring.rb │ │ └── config.ru │ └── fixtures │ │ └── files │ │ ├── avatar1.jpeg │ │ └── avatar2.jpeg ├── .gitignore ├── lib │ └── rails │ │ └── generators │ │ └── mailbox │ │ └── templates │ │ ├── mailbox.rb.tt │ │ └── application_mailbox.rb.tt ├── CHANGELOG.md └── bin │ └── test ├── activestorage ├── test │ ├── dummy │ │ ├── log │ │ │ └── .keep │ │ ├── lib │ │ │ └── assets │ │ │ │ └── .keep │ │ ├── public │ │ │ ├── favicon.ico │ │ │ ├── apple-touch-icon.png │ │ │ └── apple-touch-icon-precomposed.png │ │ ├── app │ │ │ ├── assets │ │ │ │ ├── images │ │ │ │ │ └── .keep │ │ │ │ └── config │ │ │ │ │ └── manifest.js │ │ │ ├── models │ │ │ │ └── concerns │ │ │ │ │ └── .keep │ │ │ ├── controllers │ │ │ │ └── concerns │ │ │ │ │ └── .keep │ │ │ ├── helpers │ │ │ │ └── application_helper.rb │ │ │ └── jobs │ │ │ │ └── application_job.rb │ │ ├── config │ │ │ ├── storage.yml │ │ │ └── routes.rb │ │ ├── package.json │ │ ├── Rakefile │ │ └── bin │ │ │ └── rake │ ├── fixtures │ │ ├── files │ │ │ ├── empty_file.txt │ │ │ ├── colors.bmp │ │ │ ├── icon.psd │ │ │ ├── image.gif │ │ │ ├── report.pdf │ │ │ ├── video.mp4 │ │ │ ├── video.webm │ │ │ ├── cropped.pdf │ │ │ ├── favicon.ico │ │ │ ├── racecar.jpg │ │ │ ├── racecar.tif │ │ │ ├── rotated_video.mp4 │ │ │ ├── racecar_rotated.jpg │ │ │ └── video_without_video_stream.mp4 │ │ ├── users.yml │ │ └── active_storage │ │ │ └── attachments.yml │ └── service │ │ └── configurations.yml.enc ├── app │ ├── assets │ │ └── javascripts │ │ │ └── .gitattributes │ └── jobs │ │ └── active_storage │ │ └── base_job.rb ├── .babelrc ├── .gitignore └── bin │ └── test ├── activerecord ├── test │ ├── assets │ │ ├── test.txt │ │ ├── example.log │ │ └── flowers.jpg │ ├── fixtures │ │ ├── all │ │ │ ├── people.yml │ │ │ ├── tasks.yml │ │ │ ├── developers.yml │ │ │ ├── admin │ │ │ └── namespaced │ │ │ │ └── accounts.yml │ │ ├── naked │ │ │ └── yml │ │ │ │ ├── accounts.yml │ │ │ │ ├── courses.yml │ │ │ │ ├── companies.yml │ │ │ │ ├── trees.yml │ │ │ │ ├── courses_with_invalid_key.yml │ │ │ │ └── parrots.yml │ │ ├── fk_test_has_pk.yml │ │ ├── other_dogs.yml │ │ ├── uuid_parents.yml │ │ ├── strict_zines.yml │ │ ├── admin │ │ │ └── accounts.yml │ │ ├── fk_test_has_fk.yml │ │ ├── items.yml │ │ ├── trees.yml │ │ ├── warehouse-things.yml │ │ ├── content.yml │ │ ├── to_be_linked │ │ │ └── accounts.yml │ │ ├── collections.yml │ │ ├── legacy_things.yml │ │ ├── minimalistics.yml │ │ ├── uuid_children.yml │ │ ├── content_positions.yml │ │ ├── dogs.yml │ │ ├── humans.yml │ │ ├── colleges.yml │ │ ├── doubloons.yml │ │ ├── variants.yml │ │ ├── bulbs.yml │ │ ├── friendships.yml │ │ ├── products.yml │ │ ├── reserved_words │ │ │ ├── distinct.yml │ │ │ ├── select.yml │ │ │ └── values.yml │ │ ├── author_favorites.yml │ │ ├── vertices.yml │ │ ├── organizations.yml │ │ ├── zines.yml │ │ ├── jobs.yml │ │ ├── member_types.yml │ │ ├── minivans.yml │ │ ├── mixed_case_monkeys.yml │ │ ├── movies.yml │ │ ├── live_parrots.yml │ │ ├── citations.yml │ │ ├── edges.yml │ │ ├── dashboards.yml │ │ ├── dog_lovers.yml │ │ ├── ships.yml │ │ ├── courses.yml │ │ ├── projects.yml │ │ ├── string_key_objects.yml │ │ ├── cars.yml │ │ ├── dead_parrots.yml │ │ └── tags.yml │ ├── migrations │ │ └── empty │ │ │ └── .keep │ └── models │ │ ├── publisher.rb │ │ ├── guid.rb │ │ ├── binary.rb │ │ ├── carrier.rb │ │ ├── default.rb │ │ ├── record.rb │ │ ├── autoloadable │ │ └── extra_firm.rb │ │ ├── measurement.rb │ │ ├── minimalistic.rb │ │ ├── non_primary_key.rb │ │ ├── recipe.rb │ │ ├── cart.rb │ │ ├── column.rb │ │ ├── entrant.rb │ │ ├── mentor.rb │ │ ├── member_type.rb │ │ ├── admin.rb │ │ ├── admin │ │ └── account.rb │ │ ├── event.rb │ │ ├── message.rb │ │ ├── tree.rb │ │ ├── uuid_child.rb │ │ ├── uuid_parent.rb │ │ ├── boolean.rb │ │ ├── country.rb │ │ ├── keyboard.rb │ │ ├── line_item.rb │ │ ├── mixed_case_monkey.rb │ │ ├── possession.rb │ │ ├── task.rb │ │ ├── treaty.rb │ │ ├── arunit2_model.rb │ │ ├── column_name.rb │ │ ├── dashboard.rb │ │ ├── legacy_thing.rb │ │ ├── notification.rb │ │ ├── string_key_object.rb │ │ ├── cake_designer.rb │ │ ├── department.rb │ │ ├── uuid_comment.rb │ │ ├── uuid_message.rb │ │ ├── computer.rb │ │ ├── dl_keyed_has_many.rb │ │ ├── dl_keyed_has_one.rb │ │ ├── frog.rb │ │ ├── entry.rb │ │ ├── room.rb │ │ └── without_table.rb └── .gitignore ├── actionpack ├── test │ ├── fixtures │ │ ├── shared.html.erb │ │ ├── 公共 │ │ │ ├── bar.html │ │ │ ├── foo │ │ │ │ ├── bar.html │ │ │ │ ├── index.html │ │ │ │ ├── other-index.html │ │ │ │ ├── こんにちは.html │ │ │ │ ├── さようなら.html │ │ │ │ ├── baz.css │ │ │ │ └── さようなら.html.gz │ │ │ ├── index.html │ │ │ ├── bar │ │ │ │ └── index.html │ │ │ ├── other-index.html │ │ │ └── gzip │ │ │ │ └── foo.zoo.gz │ │ ├── multipart │ │ │ ├── hello.txt │ │ │ ├── binary_file │ │ │ ├── mixed_files │ │ │ ├── bracketed_param │ │ │ ├── single_parameter │ │ │ └── ruby_on_rails.jpg │ │ ├── public │ │ │ ├── bar.html │ │ │ ├── index.html │ │ │ ├── foo │ │ │ │ ├── bar.html │ │ │ │ ├── index.html │ │ │ │ ├── other-index.html │ │ │ │ ├── こんにちは.html │ │ │ │ ├── さようなら.html │ │ │ │ ├── baz.css │ │ │ │ └── さようなら.html.gz │ │ │ ├── 400.html │ │ │ ├── 404.html │ │ │ ├── 500.html │ │ │ ├── bar │ │ │ │ └── index.html │ │ │ ├── other-index.html │ │ │ ├── 500.da.html │ │ │ └── gzip │ │ │ │ └── foo.zoo.gz │ │ ├── test │ │ │ ├── _partial.erb │ │ │ ├── _partial.js.erb │ │ │ ├── hello │ │ │ │ └── hello.erb │ │ │ ├── hello_world.erb │ │ │ ├── _partial.html.erb │ │ │ ├── formatted_xml_erb.builder │ │ │ ├── with_implicit_template.erb │ │ │ ├── implicit_content_type.atom.builder │ │ │ ├── render_file_with_ivar.erb │ │ │ ├── formatted_xml_erb.xml.erb │ │ │ ├── render_file_with_locals.erb │ │ │ ├── formatted_xml_erb.html.erb │ │ │ ├── dot.directory │ │ │ │ └── render_file_with_ivar.erb │ │ │ └── hello_world_with_partial.html.erb │ │ ├── localized │ │ │ ├── hello_world.de.html │ │ │ ├── hello_world.it.erb │ │ │ └── hello_world.en.html │ │ ├── layouts │ │ │ ├── xhr.html.erb │ │ │ ├── builder.builder │ │ │ ├── yield.erb │ │ │ ├── _customers.erb │ │ │ ├── standard.html.erb │ │ │ ├── talk_from_action.erb │ │ │ └── with_html_partial.html.erb │ │ ├── post_test │ │ │ ├── post │ │ │ │ ├── index.html.erb │ │ │ │ └── index.iphone.erb │ │ │ ├── super_post │ │ │ │ ├── index.html.erb │ │ │ │ └── index.iphone.erb │ │ │ └── layouts │ │ │ │ ├── post.html.erb │ │ │ │ └── super_post.iphone.erb │ │ ├── _top_level_partial_only.erb │ │ ├── filter_test │ │ │ └── implicit_actions │ │ │ │ ├── edit.html.erb │ │ │ │ └── show.html.erb │ │ ├── respond_to │ │ │ ├── using_defaults.html.erb │ │ │ ├── using_defaults_with_all.html.erb │ │ │ ├── variant_plus_none_for_format.html.erb │ │ │ ├── using_defaults.xml.builder │ │ │ ├── using_defaults_with_type_list.html.erb │ │ │ ├── variant_any_implicit_render.html+phablet.erb │ │ │ ├── variant_any_implicit_render.html+tablet.erb │ │ │ ├── custom_constant_handling_without_block.mobile.erb │ │ │ ├── variant_inline_syntax_without_block.html+phone.erb │ │ │ ├── all_types_with_layout.html.erb │ │ │ ├── variant_with_implicit_template_rendering.html+mobile.erb │ │ │ ├── using_defaults_with_type_list.xml.builder │ │ │ ├── iphone_with_html_response_type.html.erb │ │ │ ├── layouts │ │ │ │ ├── standard.html.erb │ │ │ │ ├── standard.iphone.erb │ │ │ │ └── missing.html.erb │ │ │ └── iphone_with_html_response_type.iphone.erb │ │ ├── functional_caching │ │ │ ├── _formatted_partial.html.erb │ │ │ ├── html_fragment_cached_with_partial.html.erb │ │ │ ├── _partial.erb │ │ │ ├── formatted_fragment_cached.html.erb │ │ │ ├── fragment_cached.html.erb │ │ │ ├── formatted_fragment_cached.xml.builder │ │ │ ├── formatted_fragment_cached_with_variant.html+phone.erb │ │ │ ├── fragment_cached_without_digest.html.erb │ │ │ └── inline_fragment_cached.html.erb │ │ ├── namespaced │ │ │ └── implicit_render_test │ │ │ │ └── hello_world.erb │ │ ├── old_content_type │ │ │ ├── render_default_for_erb.erb │ │ │ ├── render_default_for_builder.builder │ │ │ └── render_default_content_types_for_respond_to.xml.erb │ │ ├── star_star_mime │ │ │ └── index.js.erb │ │ ├── load_me.rb │ │ ├── implicit_render_test │ │ │ ├── empty_action_with_mobile_variant.html+mobile.erb │ │ │ └── empty_action_with_template.html.erb │ │ ├── ruby_template.ruby │ │ ├── helpers │ │ │ ├── abc_helper.rb │ │ │ ├── just_me_helper.rb │ │ │ ├── me_too_helper.rb │ │ │ └── fun │ │ │ │ └── pdf_helper.rb │ │ ├── bad_customers │ │ │ └── _bad_customer.html.erb │ │ ├── collection_cache │ │ │ └── index.html.erb │ │ ├── alternate_helpers │ │ │ └── foo_helper.rb │ │ ├── helpers_typo │ │ │ └── admin │ │ │ │ └── users_helper.rb │ │ ├── helpers1_pack │ │ │ └── pack1_helper.rb │ │ ├── helpers2_pack │ │ │ └── pack2_helper.rb │ │ └── customers │ │ │ └── _customer.html.erb │ └── controller │ │ └── controller_fixtures │ │ ├── app │ │ └── controllers │ │ │ ├── user_controller.rb │ │ │ └── admin │ │ │ └── user_controller.rb │ │ └── vendor │ │ └── plugins │ │ └── bad_plugin │ │ └── lib │ │ └── plugin_controller.rb ├── lib │ ├── action_dispatch │ │ └── middleware │ │ │ └── templates │ │ │ └── rescues │ │ │ ├── _actions.text.erb │ │ │ ├── unknown_action.text.erb │ │ │ ├── missing_template.text.erb │ │ │ └── missing_exact_template.text.erb │ └── abstract_controller │ │ └── error.rb └── bin │ └── test ├── actionview ├── test │ ├── fixtures │ │ ├── shared.html.erb │ │ ├── test │ │ │ ├── _a-in.html.erb │ │ │ ├── _two.html.erb │ │ │ ├── _🍣.erb │ │ │ ├── _FooBar.html.erb │ │ │ ├── _partial.erb │ │ │ ├── _first.html.erb │ │ │ ├── _first.xml.erb │ │ │ ├── _partial.js.erb │ │ │ ├── _second.html.erb │ │ │ ├── _second.xml.erb │ │ │ ├── hello │ │ │ │ └── hello.erb │ │ │ ├── hello_world.erb │ │ │ ├── _changing_priority.html.erb │ │ │ ├── _changing_priority.json.erb │ │ │ ├── _json_change_priority.json.erb │ │ │ ├── _klass.erb │ │ │ ├── _partial.html.erb │ │ │ ├── _partial_only.erb │ │ │ ├── dont_pick_me │ │ │ ├── hello_world.da.html.erb │ │ │ ├── hello_world.erb~ │ │ │ ├── template.erb │ │ │ ├── _partialhtml.html │ │ │ ├── _raise.html.erb │ │ │ ├── hello_world.html+phone.erb │ │ │ ├── hello_world.pt-BR.html.erb │ │ │ ├── malformed │ │ │ │ ├── malformed~ │ │ │ │ ├── malformed.erb~ │ │ │ │ ├── malformed.en.html.erb~ │ │ │ │ └── malformed.html.erb~ │ │ │ ├── render_file_unicode_local.erb │ │ │ ├── _200.html.erb │ │ │ ├── _counter.html.erb │ │ │ ├── _from_helper.erb │ │ │ ├── _second_json_partial.json.erb │ │ │ ├── _utf8_partial.html.erb │ │ │ ├── basic.html.erb │ │ │ ├── greeting.xml.erb │ │ │ ├── nil_return.erb │ │ │ ├── hello_world.text+phone.erb │ │ │ ├── render_file_instance_variable.erb │ │ │ ├── _b_layout_for_partial.html.erb │ │ │ ├── _object_inspector.erb │ │ │ ├── _one.html.erb │ │ │ ├── one.html.erb │ │ │ ├── _customer.erb │ │ │ ├── _directory │ │ │ │ └── _partial_with_locales.html.erb │ │ │ ├── render_file_with_locals_and_default.erb │ │ │ ├── render_template_with_ivar.erb │ │ │ ├── render_template_with_locals.erb │ │ │ ├── streaming_with_locale.erb │ │ │ ├── syntax_error.html.erb │ │ │ ├── _customer.mobile.erb │ │ │ ├── _customer_greeting.erb │ │ │ ├── _js_html_fallback.html.erb │ │ │ ├── _partial_for_use_in_layout.html.erb │ │ │ ├── sub_template_raise.html.erb │ │ │ ├── _partial_name_local_variable.erb │ │ │ ├── _partial_with_only_html_version.html.erb │ │ │ ├── _partial_with_variants.html+grid.erb │ │ │ ├── _template_not_named_customer.html.erb │ │ │ ├── _layout_for_partial.html.erb │ │ │ ├── _partial_iteration_1.erb │ │ │ ├── _partial_iteration_2.erb │ │ │ ├── _utf8_partial_magic.html.erb │ │ │ ├── dot.directory │ │ │ │ └── render_template_with_ivar.erb │ │ │ ├── render_file_inspect_local_assigns.erb │ │ │ ├── _first_json_partial.json.erb │ │ │ ├── _partial_with_partial.erb │ │ │ ├── render_file_with_ruby_keyword_locals.erb │ │ │ ├── _customer_with_var.erb │ │ │ ├── _layout_for_block_with_args.html.erb │ │ │ ├── _local_inspector.html.erb │ │ │ ├── hello_world_with_partial.html.erb │ │ │ ├── html_template.html.erb │ │ │ ├── _partial_name_in_local_assigns.erb │ │ │ ├── test_template_with_delegation_reserved_keywords.erb │ │ │ ├── _b_layout_for_partial_with_object.html.erb │ │ │ ├── _builder_tag_nested_in_content_tag.erb │ │ │ ├── _cached_customer_as.erb │ │ │ ├── streaming_buster.erb │ │ │ ├── _b_layout_for_partial_with_object_counter.html.erb │ │ │ ├── _cached_customer.erb │ │ │ ├── js_html_fallback.js.erb │ │ │ ├── hello.builder │ │ │ ├── layout_render_object.erb │ │ │ ├── layout_render_file.erb │ │ │ ├── nested_streaming.erb │ │ │ ├── _content_tag_nested_in_content_tag.erb │ │ │ ├── _first_layer.html.erb │ │ │ ├── _first_layer.xml.erb │ │ │ ├── _layout_with_partial_and_yield.html.erb │ │ │ ├── _nested_cached_customer.erb │ │ │ ├── _second_layer.html.erb │ │ │ ├── _second_layer.xml.erb │ │ │ ├── streaming.erb │ │ │ ├── _label_with_block.erb │ │ │ ├── list.erb │ │ │ ├── render_partial_inside_directory.html.erb │ │ │ ├── cache_fragment_inside_render_layout_block_1.html.erb │ │ │ ├── cache_fragment_inside_render_layout_block_2.html.erb │ │ │ └── _cached_set.erb │ │ ├── actionpack │ │ │ ├── hello.html │ │ │ ├── shared.html.erb │ │ │ ├── test │ │ │ │ ├── _partial.erb │ │ │ │ ├── _hello.builder │ │ │ │ ├── _partial.js.erb │ │ │ │ ├── hello,world.erb │ │ │ │ ├── hello │ │ │ │ │ └── hello.erb │ │ │ │ ├── hello_world.erb │ │ │ │ ├── raise.html.erb │ │ │ │ ├── _changing_priority.html.erb │ │ │ │ ├── _changing_priority.json.erb │ │ │ │ ├── _json_change_priority.json.erb │ │ │ │ ├── _partial.html.erb │ │ │ │ ├── _partial_only.erb │ │ │ │ ├── hyphen-ated.erb │ │ │ │ ├── _counter.html.erb │ │ │ │ ├── _form.erb │ │ │ │ ├── _partial_only_html.html │ │ │ │ ├── _second_json_partial.json.erb │ │ │ │ ├── greeting.xml.erb │ │ │ │ ├── proper_block_detection.erb │ │ │ │ ├── formatted_html_erb.html.erb │ │ │ │ ├── formatted_xml_erb.builder │ │ │ │ ├── greeting.html.erb │ │ │ │ ├── hello_world_with_layout_false.erb │ │ │ │ ├── _partial_html_erb.html.erb │ │ │ │ ├── _customer.erb │ │ │ │ ├── _labelling_form.erb │ │ │ │ ├── _person.erb │ │ │ │ ├── formatted_xml_erb.xml.erb │ │ │ │ ├── implicit_content_type.atom.builder │ │ │ │ ├── render_file_from_template.html.erb │ │ │ │ ├── render_file_with_locals_and_default.erb │ │ │ │ ├── render_template_with_ivar.erb │ │ │ │ ├── _directory │ │ │ │ │ └── _partial_with_locales.html.erb │ │ │ │ ├── formatted_xml_erb.html.erb │ │ │ │ ├── render_implicit_html_template_from_xhr_request.html.erb │ │ │ │ ├── render_implicit_js_template_without_layout.js.erb │ │ │ │ ├── render_template_with_locals.erb │ │ │ │ ├── render_to_string_test.erb │ │ │ │ ├── _customer_counter_with_as.erb │ │ │ │ ├── _customer_greeting.erb │ │ │ │ ├── _hash_greeting.erb │ │ │ │ ├── _partial_for_use_in_layout.html.erb │ │ │ │ ├── _partial_name_local_variable.erb │ │ │ │ ├── render_implicit_html_template_from_xhr_request.da.html.erb │ │ │ │ ├── with_partial.text.erb │ │ │ │ ├── _layout_for_partial.html.erb │ │ │ │ ├── dot.directory │ │ │ │ │ └── render_template_with_ivar.erb │ │ │ │ ├── hello_world_from_rxml.builder │ │ │ │ ├── _customer_counter.erb │ │ │ │ ├── _first_json_partial.json.erb │ │ │ │ ├── _customer_with_var.erb │ │ │ │ ├── _partial_with_partial.erb │ │ │ │ ├── action_talk_to_layout.erb │ │ │ │ ├── capturing.erb │ │ │ │ ├── hello_world_with_partial.html.erb │ │ │ │ ├── with_partial.html.erb │ │ │ │ ├── content_for.erb │ │ │ │ ├── html_template.html.erb │ │ │ │ ├── with_xml_template.html.erb │ │ │ │ ├── _hash_object.erb │ │ │ │ ├── with_html_partial.html.erb │ │ │ │ ├── content_for_with_parameter.erb │ │ │ │ ├── hello_world_container.builder │ │ │ │ ├── hello.builder │ │ │ │ ├── content_for_concatenated.erb │ │ │ │ ├── list.erb │ │ │ │ ├── non_erb_block_content_for.builder │ │ │ │ ├── render_partial_inside_directory.html.erb │ │ │ │ └── using_layout_around_block.html.erb │ │ │ ├── layout_tests │ │ │ │ ├── views │ │ │ │ │ ├── hello.erb │ │ │ │ │ └── goodbye.erb │ │ │ │ ├── alt │ │ │ │ │ └── layouts │ │ │ │ │ │ └── alt.erb │ │ │ │ └── layouts │ │ │ │ │ ├── item.erb │ │ │ │ │ ├── layout_test.erb │ │ │ │ │ ├── multiple_extensions.html.erb │ │ │ │ │ ├── third_party_template_library.mab │ │ │ │ │ ├── controller_name_space │ │ │ │ │ └── nested.erb │ │ │ │ │ └── symlinked │ │ │ │ │ └── symlinked_layout.erb │ │ │ ├── layouts │ │ │ │ ├── _yield_only.erb │ │ │ │ ├── xhr.html.erb │ │ │ │ ├── _yield_with_params.erb │ │ │ │ ├── builder.builder │ │ │ │ ├── standard.html.erb │ │ │ │ ├── standard.text.erb │ │ │ │ ├── yield.erb │ │ │ │ ├── _customers.erb │ │ │ │ ├── _partial_and_yield.erb │ │ │ │ ├── talk_from_action.erb │ │ │ │ ├── with_html_partial.html.erb │ │ │ │ ├── yield_with_render_inline_inside.erb │ │ │ │ ├── yield_with_render_partial_inside.erb │ │ │ │ ├── _column.html.erb │ │ │ │ └── streaming.erb │ │ │ ├── fun │ │ │ │ └── games │ │ │ │ │ ├── _form.erb │ │ │ │ │ └── hello_world.erb │ │ │ ├── quiz │ │ │ │ └── questions │ │ │ │ │ └── _question.html.erb │ │ │ ├── customers │ │ │ │ └── _customer.html.erb │ │ │ ├── bad_customers │ │ │ │ └── _bad_customer.html.erb │ │ │ └── good_customers │ │ │ │ └── _good_customer.html.erb │ │ ├── digestor │ │ │ ├── events │ │ │ │ ├── _event.html.erb │ │ │ │ ├── _completed.html.erb │ │ │ │ └── index.html.erb │ │ │ ├── messages │ │ │ │ ├── _form.html.erb │ │ │ │ ├── _header.html.erb │ │ │ │ ├── actions │ │ │ │ │ └── _move.html.erb │ │ │ │ ├── _message.html.erb │ │ │ │ ├── thread.json.erb │ │ │ │ ├── index.html.erb │ │ │ │ └── peek.html.erb │ │ │ ├── level │ │ │ │ ├── below │ │ │ │ │ ├── _header.html.erb │ │ │ │ │ └── index.html.erb │ │ │ │ ├── recursion.html.erb │ │ │ │ └── _recursion.html.erb │ │ │ ├── comments │ │ │ │ ├── _comment.html.erb │ │ │ │ ├── show.js.erb │ │ │ │ └── _comments.html.erb │ │ │ └── api │ │ │ │ └── comments │ │ │ │ ├── _comment.json.erb │ │ │ │ └── _comments.json.erb │ │ ├── plain_text.raw │ │ ├── public │ │ │ ├── elsewhere │ │ │ │ ├── cools.js │ │ │ │ └── file.css │ │ │ ├── javascripts │ │ │ │ ├── bank.js │ │ │ │ ├── effects.js │ │ │ │ ├── robber.js │ │ │ │ ├── controls.js │ │ │ │ ├── dragdrop.js │ │ │ │ ├── prototype.js │ │ │ │ ├── application.js │ │ │ │ ├── subdir │ │ │ │ │ └── subdir.js │ │ │ │ ├── version.1.0.js │ │ │ │ └── common.javascript │ │ │ ├── stylesheets │ │ │ │ ├── bank.css │ │ │ │ ├── robber.css │ │ │ │ ├── random.styles │ │ │ │ ├── subdir │ │ │ │ │ └── subdir.css │ │ │ │ └── version.1.0.css │ │ │ └── foo │ │ │ │ └── baz.css │ │ ├── replies │ │ │ └── _reply.erb │ │ ├── comments │ │ │ ├── empty.html.erb │ │ │ ├── empty.xml.erb │ │ │ ├── empty.de.html.erb │ │ │ ├── empty.html+grid.erb │ │ │ └── empty.html.builder │ │ ├── games │ │ │ └── _game.erb │ │ ├── layouts │ │ │ ├── _yield_only.erb │ │ │ ├── _yield_with_params.erb │ │ │ ├── yield.erb │ │ │ ├── _customers.erb │ │ │ ├── streaming_with_locale.erb │ │ │ ├── _partial_and_yield.erb │ │ │ ├── render_partial_html.erb │ │ │ ├── yield_with_render_inline_inside.erb │ │ │ ├── _column.html.erb │ │ │ ├── yield_with_render_partial_inside.erb │ │ │ └── streaming.erb │ │ ├── mascots │ │ │ └── _mascot.html.erb │ │ ├── projects │ │ │ └── _project.erb │ │ ├── topics │ │ │ └── _topic.html.erb │ │ ├── _top_level_partial_only.erb │ │ ├── developers │ │ │ └── _developer.erb │ │ ├── fun │ │ │ ├── games │ │ │ │ ├── _game.erb │ │ │ │ └── hello_world.erb │ │ │ └── serious │ │ │ │ └── games │ │ │ │ └── _game.erb │ │ ├── layout_tests │ │ │ └── alt │ │ │ │ └── hello.erb │ │ ├── _top_level_partial.html.erb │ │ ├── override │ │ │ └── test │ │ │ │ └── hello_world.erb │ │ ├── override2 │ │ │ └── layouts │ │ │ │ └── test │ │ │ │ └── sub.erb │ │ ├── respond_to │ │ │ └── using_defaults_with_all.html.erb │ │ ├── translations │ │ │ └── templates │ │ │ │ ├── found.erb │ │ │ │ ├── array.erb │ │ │ │ ├── missing.erb │ │ │ │ ├── _partial.html.erb │ │ │ │ ├── default.erb │ │ │ │ ├── partial_lazy_translation.html.erb │ │ │ │ ├── partial_lazy_translation_block.html.erb │ │ │ │ ├── found_yield_single_argument.html.erb │ │ │ │ ├── found_yield_block.html.erb │ │ │ │ ├── missing_yield_single_argument_block.erb │ │ │ │ └── missing_yield_block.erb │ │ ├── customers │ │ │ ├── _customer.html.erb │ │ │ └── _customer.xml.erb │ │ ├── plain_text_with_characters.raw │ │ ├── mascots.yml │ │ ├── with_format.json.erb │ │ ├── ruby_template.ruby │ │ ├── helpers │ │ │ ├── abc_helper.rb │ │ │ └── helpery_test_helper.rb │ │ ├── good_customers │ │ │ └── _good_customer.html.erb │ │ ├── mascot.rb │ │ ├── topic.rb │ │ └── projects.yml │ ├── actionpack │ │ └── abstract │ │ │ └── views │ │ │ ├── index.erb │ │ │ ├── naked_render.erb │ │ │ ├── abstract_controller │ │ │ └── testing │ │ │ │ ├── me3 │ │ │ │ ├── index.erb │ │ │ │ └── formatted.html.erb │ │ │ │ └── me4 │ │ │ │ └── index.erb │ │ │ ├── action_with_ivars.erb │ │ │ ├── helper_test.erb │ │ │ └── layouts │ │ │ ├── application.erb │ │ │ └── abstract_controller │ │ │ └── testing │ │ │ └── me4.erb │ ├── ujs │ │ └── config.ru │ └── lib │ │ └── test_renderable.rb ├── .gitignore └── bin │ └── test ├── .github └── CODEOWNERS ├── .gitattributes ├── actionmailer ├── test │ └── fixtures │ │ ├── base_mailer │ │ ├── welcome.erb │ │ ├── attachment_with_hash.html.erb │ │ ├── different_layout.html.erb │ │ ├── welcome_with_headers.html.erb │ │ ├── different_layout.text.erb │ │ ├── html_only.html.erb │ │ ├── plain_text_only.text.erb │ │ ├── attachment_with_hash_default_encoding.html.erb │ │ ├── attachment_with_content.erb │ │ ├── implicit_multipart.html.erb │ │ ├── implicit_multipart.text.erb │ │ ├── implicit_with_locale.html.erb │ │ ├── implicit_with_locale.text.erb │ │ ├── implicit_with_locale.de.html.erb │ │ ├── implicit_with_locale.en.html.erb │ │ ├── implicit_with_locale.pl.text.erb │ │ ├── email_with_translations.html.erb │ │ ├── explicit_multipart_with_one_template.erb │ │ ├── implicit_with_locale.de-AT.text.erb │ │ ├── explicit_multipart_templates.html.erb │ │ ├── explicit_multipart_templates.text.erb │ │ ├── inline_attachment.text.erb │ │ ├── without_mail_call.erb │ │ ├── implicit_multipart_formats.html.erb │ │ ├── implicit_multipart_formats.text.erb │ │ ├── inline_and_other_attachments.text.erb │ │ └── inline_attachment.html.erb │ │ ├── proc_mailer │ │ └── welcome.html.erb │ │ ├── test_helper_mailer │ │ └── welcome │ │ ├── auto_layout_mailer │ │ ├── hello.html.erb │ │ ├── multipart.html.erb │ │ └── multipart.text.erb │ │ ├── base_test │ │ ├── after_action_mailer │ │ │ └── welcome.html.erb │ │ ├── before_action_mailer │ │ │ └── welcome.html.erb │ │ └── default_inline_attachment_mailer │ │ │ └── welcome.html.erb │ │ ├── anonymous │ │ └── welcome.erb │ │ ├── layouts │ │ ├── spam.html.erb │ │ ├── different_layout.html.erb │ │ ├── different_layout.text.erb │ │ ├── auto_layout_mailer.html.erb │ │ └── auto_layout_mailer.text.erb │ │ ├── mail_delivery_test │ │ └── delivery_mailer │ │ │ └── welcome.html.erb │ │ ├── nested_layout_mailer │ │ └── signup.html.erb │ │ ├── explicit_layout_mailer │ │ ├── logout.html.erb │ │ └── signup.html.erb │ │ ├── another.path │ │ └── base_mailer │ │ │ └── welcome.erb │ │ ├── asset_mailer │ │ └── welcome.html.erb │ │ ├── templates │ │ └── signed_up.erb │ │ ├── asset_host_mailer │ │ └── email_with_asset.html.erb │ │ ├── caching_mailer │ │ ├── fragment_cache_in_partials.html.erb │ │ ├── fragment_cache.html.erb │ │ ├── _partial.html.erb │ │ ├── multipart_cache.html.erb │ │ ├── multipart_cache.text.erb │ │ ├── skip_fragment_cache_digesting.html.erb │ │ └── fragment_caching_options.html.erb │ │ ├── url_test_mailer │ │ └── exercise_url_for.erb │ │ ├── attachments │ │ ├── foo.jpg │ │ └── test.jpg │ │ └── i18n_test_mailer │ │ └── mail_with_i18n_subject.erb ├── CHANGELOG.md └── bin │ └── test ├── activesupport ├── .gitignore ├── test │ ├── fixtures │ │ ├── xml │ │ │ ├── jdom_include.txt │ │ │ ├── jdom_entities.txt │ │ │ └── jdom_doctype.dtd │ │ └── autoload │ │ │ ├── another_class.rb │ │ │ └── some_class.rb │ ├── file_fixtures │ │ └── sample.txt │ ├── autoloading_fixtures │ │ ├── d.rb │ │ ├── typo.rb │ │ ├── a │ │ │ ├── b.rb │ │ │ └── c │ │ │ │ ├── d.rb │ │ │ │ └── em │ │ │ │ └── f.rb │ │ ├── conflict.rb │ │ ├── em.rb │ │ ├── application.rb │ │ ├── circular2.rb │ │ ├── should_not_be_required.rb │ │ ├── cross_site_dependency.rb │ │ ├── load_path │ │ │ └── loaded_constant.rb │ │ ├── class_folder │ │ │ └── inline_class.rb │ │ ├── html │ │ │ └── some_class.rb │ │ ├── module_folder │ │ │ ├── inline_class.rb │ │ │ ├── nested_sibling.rb │ │ │ └── nested_class.rb │ │ ├── prepend │ │ │ └── sub_class_conflict.rb │ │ ├── raises_name_error.rb │ │ ├── class_folder.rb │ │ ├── module_with_custom_const_missing │ │ │ └── a │ │ │ │ └── b.rb │ │ ├── circular1.rb │ │ ├── requires_constant.rb │ │ ├── multiple_constant_file.rb │ │ └── raises_no_method_error.rb │ └── dependencies │ │ ├── conflict.rb │ │ ├── service_two.rb │ │ ├── requires_nonexistent0.rb │ │ ├── requires_nonexistent1.rb │ │ ├── check_warnings.rb │ │ ├── cross_site_depender.rb │ │ └── service_one.rb ├── lib │ └── active_support │ │ ├── core_ext │ │ ├── file.rb │ │ ├── digest.rb │ │ ├── object │ │ │ └── to_param.rb │ │ ├── symbol.rb │ │ └── big_decimal.rb │ │ ├── testing │ │ └── autorun.rb │ │ ├── json.rb │ │ └── all.rb └── bin │ └── test ├── .yarnrc ├── activejob ├── test │ ├── support │ │ └── delayed_job │ │ │ └── delayed │ │ │ └── serialization │ │ │ └── test.rb │ ├── adapters │ │ ├── inline.rb │ │ ├── resque.rb │ │ ├── sidekiq.rb │ │ ├── sneakers.rb │ │ ├── async.rb │ │ ├── backburner.rb │ │ ├── que.rb │ │ ├── queue_classic.rb │ │ └── sucker_punch.rb │ └── jobs │ │ ├── application_job.rb │ │ └── queue_adapter_job.rb └── bin │ └── test ├── railties ├── lib │ └── rails │ │ ├── generators │ │ ├── rails │ │ │ ├── app │ │ │ │ └── templates │ │ │ │ │ ├── public │ │ │ │ │ ├── favicon.ico │ │ │ │ │ ├── apple-touch-icon.png │ │ │ │ │ ├── apple-touch-icon-precomposed.png │ │ │ │ │ └── robots.txt │ │ │ │ │ ├── app │ │ │ │ │ ├── views │ │ │ │ │ │ └── layouts │ │ │ │ │ │ │ └── mailer.text.erb.tt │ │ │ │ │ ├── helpers │ │ │ │ │ │ └── application_helper.rb.tt │ │ │ │ │ ├── assets │ │ │ │ │ │ └── config │ │ │ │ │ │ │ └── manifest.js.tt │ │ │ │ │ └── models │ │ │ │ │ │ └── application_record.rb.tt │ │ │ │ │ └── ruby-version.tt │ │ │ ├── generator │ │ │ │ └── templates │ │ │ │ │ └── templates │ │ │ │ │ └── .empty_directory │ │ │ ├── plugin │ │ │ │ └── templates │ │ │ │ │ ├── lib │ │ │ │ │ └── %namespaced_name% │ │ │ │ │ │ ├── version.rb.tt │ │ │ │ │ │ └── railtie.rb.tt │ │ │ │ │ ├── bin │ │ │ │ │ └── test.tt │ │ │ │ │ └── rails │ │ │ │ │ └── routes.rb.tt │ │ │ └── helper │ │ │ │ └── templates │ │ │ │ └── helper.rb.tt │ │ ├── erb │ │ │ ├── mailer │ │ │ │ └── templates │ │ │ │ │ ├── layout.text.erb.tt │ │ │ │ │ └── view.text.erb.tt │ │ │ └── controller │ │ │ │ └── templates │ │ │ │ └── view.html.erb.tt │ │ └── test_unit │ │ │ └── plugin │ │ │ └── templates │ │ │ └── test_helper.rb │ │ ├── templates │ │ └── rails │ │ │ └── info │ │ │ └── properties.html.erb │ │ └── rack.rb ├── test │ └── fixtures │ │ ├── lib │ │ ├── generators │ │ │ ├── usage_template │ │ │ │ └── USAGE │ │ │ ├── model_generator.rb │ │ │ └── fixjour_generator.rb │ │ ├── create_test_dummy_template.rb │ │ └── template.rb │ │ └── Rakefile ├── .gitignore └── bin │ └── test ├── actioncable ├── .gitignore ├── app │ ├── assets │ │ └── javascripts │ │ │ └── .gitattributes │ └── javascript │ │ └── action_cable │ │ └── adapters.js ├── .babelrc ├── bin │ └── test └── lib │ └── rails │ └── generators │ └── channel │ └── templates │ └── application_cable │ ├── channel.rb.tt │ └── connection.rb.tt ├── .yardopts └── activemodel ├── test └── models │ └── sheep.rb └── bin └── test /guides/.document: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /RAILS_VERSION: -------------------------------------------------------------------------------- 1 | 7.0.0.alpha 2 | -------------------------------------------------------------------------------- /actiontext/test/dummy/log/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actiontext/test/dummy/tmp/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/log/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/storage/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actiontext/test/dummy/lib/assets/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actiontext/test/dummy/storage/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /activestorage/test/dummy/log/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/lib/assets/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actiontext/test/dummy/public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actiontext/test/dummy/tmp/storage/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /activerecord/test/assets/test.txt: -------------------------------------------------------------------------------- 1 | %00 2 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/all/people.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/all/tasks.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /activerecord/test/migrations/empty/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /activestorage/test/dummy/lib/assets/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /activestorage/test/dummy/public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/app/assets/images/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/shared.html.erb: -------------------------------------------------------------------------------- 1 | Elastica -------------------------------------------------------------------------------- /actionpack/test/fixtures/公共/bar.html: -------------------------------------------------------------------------------- 1 | /bar.html -------------------------------------------------------------------------------- /actiontext/test/dummy/app/assets/images/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/models/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionview/test/fixtures/shared.html.erb: -------------------------------------------------------------------------------- 1 | Elastica -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_a-in.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_two.html.erb: -------------------------------------------------------------------------------- 1 | Hello -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_🍣.erb: -------------------------------------------------------------------------------- 1 | 🍣 2 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/all/developers.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /activestorage/test/dummy/app/assets/images/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /activestorage/test/fixtures/files/empty_file.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | .rubocop.yml @rafaelfranca 2 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/app/models/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/public/apple-touch-icon.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/multipart/hello.txt: -------------------------------------------------------------------------------- 1 | Hello -------------------------------------------------------------------------------- /actionpack/test/fixtures/public/bar.html: -------------------------------------------------------------------------------- 1 | /bar.html -------------------------------------------------------------------------------- /actionpack/test/fixtures/public/index.html: -------------------------------------------------------------------------------- 1 | /index.html -------------------------------------------------------------------------------- /actionpack/test/fixtures/test/_partial.erb: -------------------------------------------------------------------------------- 1 | invalid -------------------------------------------------------------------------------- /actionpack/test/fixtures/公共/foo/bar.html: -------------------------------------------------------------------------------- 1 | /foo/bar.html -------------------------------------------------------------------------------- /actionpack/test/fixtures/公共/index.html: -------------------------------------------------------------------------------- 1 | /index.html -------------------------------------------------------------------------------- /actiontext/test/dummy/.browserslistrc: -------------------------------------------------------------------------------- 1 | defaults 2 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/controllers/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actiontext/test/dummy/public/apple-touch-icon.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_FooBar.html.erb: -------------------------------------------------------------------------------- 1 | 🍣 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_partial.erb: -------------------------------------------------------------------------------- 1 | invalid -------------------------------------------------------------------------------- /activerecord/test/fixtures/all/admin: -------------------------------------------------------------------------------- 1 | ../to_be_linked/ -------------------------------------------------------------------------------- /activestorage/test/dummy/app/models/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /activestorage/test/dummy/public/apple-touch-icon.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.rb diff=ruby 2 | *.gemspec diff=ruby 3 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/app/controllers/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/welcome.erb: -------------------------------------------------------------------------------- 1 | Welcome -------------------------------------------------------------------------------- /actionmailer/test/fixtures/proc_mailer/welcome.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/public/foo/bar.html: -------------------------------------------------------------------------------- 1 | /foo/bar.html -------------------------------------------------------------------------------- /actionpack/test/fixtures/test/_partial.js.erb: -------------------------------------------------------------------------------- 1 | partial js -------------------------------------------------------------------------------- /actionpack/test/fixtures/test/hello/hello.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /actionpack/test/fixtures/test/hello_world.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /actionpack/test/fixtures/公共/bar/index.html: -------------------------------------------------------------------------------- 1 | /bar/index.html -------------------------------------------------------------------------------- /actionpack/test/fixtures/公共/foo/index.html: -------------------------------------------------------------------------------- 1 | /foo/index.html -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/hello.html: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/events/_event.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/messages/_form.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_first.html.erb: -------------------------------------------------------------------------------- 1 | "HTML" 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_first.xml.erb: -------------------------------------------------------------------------------- 1 | "XML" 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_partial.js.erb: -------------------------------------------------------------------------------- 1 | partial js -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_second.html.erb: -------------------------------------------------------------------------------- 1 | "HTML" 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_second.xml.erb: -------------------------------------------------------------------------------- 1 | "XML" 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/hello/hello.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /actionview/test/fixtures/test/hello_world.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /activerecord/test/fixtures/naked/yml/accounts.yml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /activestorage/test/dummy/app/controllers/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/app/javascript/packs/application.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/test_helper_mailer/welcome: -------------------------------------------------------------------------------- 1 | Welcome! -------------------------------------------------------------------------------- /actionpack/test/fixtures/localized/hello_world.de.html: -------------------------------------------------------------------------------- 1 | Guten Tag -------------------------------------------------------------------------------- /actionpack/test/fixtures/localized/hello_world.it.erb: -------------------------------------------------------------------------------- 1 | Ciao Mondo -------------------------------------------------------------------------------- /actionpack/test/fixtures/public/400.html: -------------------------------------------------------------------------------- 1 | 400 error fixture 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/public/404.html: -------------------------------------------------------------------------------- 1 | 404 error fixture 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/public/500.html: -------------------------------------------------------------------------------- 1 | 500 error fixture 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/public/bar/index.html: -------------------------------------------------------------------------------- 1 | /bar/index.html -------------------------------------------------------------------------------- /actionpack/test/fixtures/public/foo/index.html: -------------------------------------------------------------------------------- 1 | /foo/index.html -------------------------------------------------------------------------------- /actionpack/test/fixtures/test/_partial.html.erb: -------------------------------------------------------------------------------- 1 | partial html -------------------------------------------------------------------------------- /actionpack/test/fixtures/公共/other-index.html: -------------------------------------------------------------------------------- 1 | /other-index.html -------------------------------------------------------------------------------- /actiontext/test/dummy/public/apple-touch-icon-precomposed.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/shared.html.erb: -------------------------------------------------------------------------------- 1 | Elastica -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_partial.erb: -------------------------------------------------------------------------------- 1 | invalid -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/events/_completed.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/level/below/_header.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/messages/_header.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionview/test/fixtures/plain_text.raw: -------------------------------------------------------------------------------- 1 | <%= hello_world %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/public/elsewhere/cools.js: -------------------------------------------------------------------------------- 1 | // cools.js -------------------------------------------------------------------------------- /actionview/test/fixtures/public/elsewhere/file.css: -------------------------------------------------------------------------------- 1 | /*file.css*/ -------------------------------------------------------------------------------- /actionview/test/fixtures/public/javascripts/bank.js: -------------------------------------------------------------------------------- 1 | // bank js -------------------------------------------------------------------------------- /actionview/test/fixtures/replies/_reply.erb: -------------------------------------------------------------------------------- 1 | <%= reply.content %> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_changing_priority.html.erb: -------------------------------------------------------------------------------- 1 | HTML -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_changing_priority.json.erb: -------------------------------------------------------------------------------- 1 | JSON -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_json_change_priority.json.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_klass.erb: -------------------------------------------------------------------------------- 1 | <%= klass.class.name %> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_partial.html.erb: -------------------------------------------------------------------------------- 1 | partial html -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_partial_only.erb: -------------------------------------------------------------------------------- 1 | only partial -------------------------------------------------------------------------------- /actionview/test/fixtures/test/dont_pick_me: -------------------------------------------------------------------------------- 1 | non-template file -------------------------------------------------------------------------------- /actionview/test/fixtures/test/hello_world.da.html.erb: -------------------------------------------------------------------------------- 1 | Hey verden -------------------------------------------------------------------------------- /actionview/test/fixtures/test/hello_world.erb~: -------------------------------------------------------------------------------- 1 | Don't pick me! -------------------------------------------------------------------------------- /actionview/test/fixtures/test/template.erb: -------------------------------------------------------------------------------- 1 | <%= template.path %> -------------------------------------------------------------------------------- /activerecord/test/fixtures/naked/yml/courses.yml: -------------------------------------------------------------------------------- 1 | qwerty 2 | -------------------------------------------------------------------------------- /activesupport/.gitignore: -------------------------------------------------------------------------------- 1 | /test/fixtures/isolation_test/ 2 | -------------------------------------------------------------------------------- /activesupport/test/fixtures/xml/jdom_include.txt: -------------------------------------------------------------------------------- 1 | include me 2 | -------------------------------------------------------------------------------- /guides/source/kindle/copyright.html.erb: -------------------------------------------------------------------------------- 1 | <%= render 'license' %> -------------------------------------------------------------------------------- /.yarnrc: -------------------------------------------------------------------------------- 1 | workspaces-experimental true 2 | --add.prefer-offline true -------------------------------------------------------------------------------- /actionmailbox/test/dummy/public/apple-touch-icon-precomposed.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/auto_layout_mailer/hello.html.erb: -------------------------------------------------------------------------------- 1 | Inside -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/attachment_with_hash.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/different_layout.html.erb: -------------------------------------------------------------------------------- 1 | HTML -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/welcome_with_headers.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/layouts/xhr.html.erb: -------------------------------------------------------------------------------- 1 | XHR! 2 | <%= yield %> -------------------------------------------------------------------------------- /actionpack/test/fixtures/localized/hello_world.en.html: -------------------------------------------------------------------------------- 1 | Hello World -------------------------------------------------------------------------------- /actionpack/test/fixtures/post_test/post/index.html.erb: -------------------------------------------------------------------------------- 1 | Hello Firefox -------------------------------------------------------------------------------- /actionpack/test/fixtures/post_test/post/index.iphone.erb: -------------------------------------------------------------------------------- 1 | Hello iPhone -------------------------------------------------------------------------------- /actionpack/test/fixtures/public/other-index.html: -------------------------------------------------------------------------------- 1 | /other-index.html -------------------------------------------------------------------------------- /actiontext/test/fixtures/people.yml: -------------------------------------------------------------------------------- 1 | alice: 2 | name: "Alice" 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_hello.builder: -------------------------------------------------------------------------------- 1 | xm.hello 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_partial.js.erb: -------------------------------------------------------------------------------- 1 | partial js -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/hello,world.erb: -------------------------------------------------------------------------------- 1 | Hello w*rld! -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/hello/hello.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/hello_world.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/raise.html.erb: -------------------------------------------------------------------------------- 1 | <% raise %> -------------------------------------------------------------------------------- /actionview/test/fixtures/comments/empty.html.erb: -------------------------------------------------------------------------------- 1 |

No Comment

-------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/messages/actions/_move.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionview/test/fixtures/games/_game.erb: -------------------------------------------------------------------------------- 1 | Just <%= game.name %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/layouts/_yield_only.erb: -------------------------------------------------------------------------------- 1 | <%= yield %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/mascots/_mascot.html.erb: -------------------------------------------------------------------------------- 1 | <%= mascot.name %> -------------------------------------------------------------------------------- /actionview/test/fixtures/projects/_project.erb: -------------------------------------------------------------------------------- 1 | <%= project.name %> -------------------------------------------------------------------------------- /actionview/test/fixtures/public/javascripts/effects.js: -------------------------------------------------------------------------------- 1 | // effects js -------------------------------------------------------------------------------- /actionview/test/fixtures/public/javascripts/robber.js: -------------------------------------------------------------------------------- 1 | // robber js -------------------------------------------------------------------------------- /actionview/test/fixtures/public/stylesheets/bank.css: -------------------------------------------------------------------------------- 1 | /* bank.css */ -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_partialhtml.html: -------------------------------------------------------------------------------- 1 |

partial html

-------------------------------------------------------------------------------- /actionview/test/fixtures/test/_raise.html.erb: -------------------------------------------------------------------------------- 1 | <%= doesnt_exist %> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/hello_world.html+phone.erb: -------------------------------------------------------------------------------- 1 | Hello phone! -------------------------------------------------------------------------------- /actionview/test/fixtures/test/hello_world.pt-BR.html.erb: -------------------------------------------------------------------------------- 1 | Ola mundo -------------------------------------------------------------------------------- /actionview/test/fixtures/test/malformed/malformed~: -------------------------------------------------------------------------------- 1 | Don't render me! -------------------------------------------------------------------------------- /actionview/test/fixtures/test/render_file_unicode_local.erb: -------------------------------------------------------------------------------- 1 | <%= 🎃 %> -------------------------------------------------------------------------------- /actionview/test/fixtures/topics/_topic.html.erb: -------------------------------------------------------------------------------- 1 | <%= topic.title %> -------------------------------------------------------------------------------- /activejob/test/support/delayed_job/delayed/serialization/test.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/fk_test_has_pk.yml: -------------------------------------------------------------------------------- 1 | first: 2 | pk_id: 1 -------------------------------------------------------------------------------- /activerecord/test/fixtures/other_dogs.yml: -------------------------------------------------------------------------------- 1 | lassie: 2 | id: 1 3 | -------------------------------------------------------------------------------- /activestorage/test/dummy/public/apple-touch-icon-precomposed.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /activestorage/test/fixtures/users.yml: -------------------------------------------------------------------------------- 1 | first: 2 | name: $LABEL 3 | -------------------------------------------------------------------------------- /activesupport/test/file_fixtures/sample.txt: -------------------------------------------------------------------------------- 1 | sample file fixture 2 | -------------------------------------------------------------------------------- /railties/lib/rails/generators/rails/app/templates/public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actioncable/.gitignore: -------------------------------------------------------------------------------- 1 | /src 2 | /test/javascript/compiled/ 3 | /tmp/ 4 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/different_layout.text.erb: -------------------------------------------------------------------------------- 1 | PLAIN -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/html_only.html.erb: -------------------------------------------------------------------------------- 1 |

Testing

-------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/plain_text_only.text.erb: -------------------------------------------------------------------------------- 1 | Testing -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_test/after_action_mailer/welcome.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/_top_level_partial_only.erb: -------------------------------------------------------------------------------- 1 | top level partial -------------------------------------------------------------------------------- /actionpack/test/fixtures/filter_test/implicit_actions/edit.html.erb: -------------------------------------------------------------------------------- 1 | edit -------------------------------------------------------------------------------- /actionpack/test/fixtures/filter_test/implicit_actions/show.html.erb: -------------------------------------------------------------------------------- 1 | show -------------------------------------------------------------------------------- /actionpack/test/fixtures/post_test/super_post/index.html.erb: -------------------------------------------------------------------------------- 1 | Super Firefox -------------------------------------------------------------------------------- /actionpack/test/fixtures/public/foo/other-index.html: -------------------------------------------------------------------------------- 1 | /foo/other-index.html -------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/using_defaults.html.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /actionpack/test/fixtures/公共/foo/other-index.html: -------------------------------------------------------------------------------- 1 | /foo/other-index.html -------------------------------------------------------------------------------- /actionpack/test/fixtures/公共/foo/こんにちは.html: -------------------------------------------------------------------------------- 1 | means hello in Japanese 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/公共/foo/さようなら.html: -------------------------------------------------------------------------------- 1 | means goodbye in Japanese 2 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/views/layouts/mailer.text.erb: -------------------------------------------------------------------------------- 1 | <%= yield %> 2 | -------------------------------------------------------------------------------- /actionview/test/actionpack/abstract/views/index.erb: -------------------------------------------------------------------------------- 1 | Hello from index.erb -------------------------------------------------------------------------------- /actionview/test/fixtures/_top_level_partial_only.erb: -------------------------------------------------------------------------------- 1 | top level partial -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layout_tests/views/hello.erb: -------------------------------------------------------------------------------- 1 | hello.erb -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_changing_priority.html.erb: -------------------------------------------------------------------------------- 1 | HTML -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_changing_priority.json.erb: -------------------------------------------------------------------------------- 1 | JSON -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_json_change_priority.json.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_partial.html.erb: -------------------------------------------------------------------------------- 1 | partial html -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_partial_only.erb: -------------------------------------------------------------------------------- 1 | only partial -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/hyphen-ated.erb: -------------------------------------------------------------------------------- 1 | hyphen-ated.erb -------------------------------------------------------------------------------- /actionview/test/fixtures/comments/empty.xml.erb: -------------------------------------------------------------------------------- 1 | No Comment -------------------------------------------------------------------------------- /actionview/test/fixtures/developers/_developer.erb: -------------------------------------------------------------------------------- 1 | <%= developer.name %> -------------------------------------------------------------------------------- /actionview/test/fixtures/fun/games/_game.erb: -------------------------------------------------------------------------------- 1 | Fun <%= game.name %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/layout_tests/alt/hello.erb: -------------------------------------------------------------------------------- 1 | alt/hello.erb 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/public/javascripts/controls.js: -------------------------------------------------------------------------------- 1 | // controls js -------------------------------------------------------------------------------- /actionview/test/fixtures/public/javascripts/dragdrop.js: -------------------------------------------------------------------------------- 1 | // dragdrop js -------------------------------------------------------------------------------- /actionview/test/fixtures/public/javascripts/prototype.js: -------------------------------------------------------------------------------- 1 | // prototype js -------------------------------------------------------------------------------- /actionview/test/fixtures/public/stylesheets/robber.css: -------------------------------------------------------------------------------- 1 | /* robber.css */ -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_200.html.erb: -------------------------------------------------------------------------------- 1 |

Invalid partial

2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_counter.html.erb: -------------------------------------------------------------------------------- 1 | <%= counter_counter %> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_from_helper.erb: -------------------------------------------------------------------------------- 1 | <%= render_from_helper %> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_second_json_partial.json.erb: -------------------------------------------------------------------------------- 1 | Third level -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_utf8_partial.html.erb: -------------------------------------------------------------------------------- 1 | <%= "текст" %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/basic.html.erb: -------------------------------------------------------------------------------- 1 | Hello from basic.html.erb -------------------------------------------------------------------------------- /actionview/test/fixtures/test/greeting.xml.erb: -------------------------------------------------------------------------------- 1 |

This is grand!

2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/malformed/malformed.erb~: -------------------------------------------------------------------------------- 1 | Don't render me! -------------------------------------------------------------------------------- /actionview/test/fixtures/test/nil_return.erb: -------------------------------------------------------------------------------- 1 | This is nil: <%== nil %> 2 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/uuid_parents.yml: -------------------------------------------------------------------------------- 1 | daddy: 2 | name: Daddy 3 | -------------------------------------------------------------------------------- /activesupport/test/fixtures/xml/jdom_entities.txt: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/app/views/layouts/mailer.text.erb: -------------------------------------------------------------------------------- 1 | <%= yield %> 2 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/anonymous/welcome.erb: -------------------------------------------------------------------------------- 1 | Anonymous mailer body 2 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_test/before_action_mailer/welcome.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/layouts/spam.html.erb: -------------------------------------------------------------------------------- 1 | Spammer layout <%= yield %> -------------------------------------------------------------------------------- /actionmailer/test/fixtures/mail_delivery_test/delivery_mailer/welcome.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/nested_layout_mailer/signup.html.erb: -------------------------------------------------------------------------------- 1 | We do not spam -------------------------------------------------------------------------------- /actionpack/lib/action_dispatch/middleware/templates/rescues/_actions.text.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/post_test/super_post/index.iphone.erb: -------------------------------------------------------------------------------- 1 | Super iPhone -------------------------------------------------------------------------------- /actionpack/test/fixtures/public/500.da.html: -------------------------------------------------------------------------------- 1 | 500 localized error fixture 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/public/foo/こんにちは.html: -------------------------------------------------------------------------------- 1 | means hello in Japanese 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/public/foo/さようなら.html: -------------------------------------------------------------------------------- 1 | means goodbye in Japanese 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/using_defaults_with_all.html.erb: -------------------------------------------------------------------------------- 1 | HTML! 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/variant_plus_none_for_format.html.erb: -------------------------------------------------------------------------------- 1 | none -------------------------------------------------------------------------------- /actionpack/test/fixtures/test/formatted_xml_erb.builder: -------------------------------------------------------------------------------- 1 | xml.test "failed" 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/test/with_implicit_template.erb: -------------------------------------------------------------------------------- 1 | Hello explicitly! 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/公共/foo/baz.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: #000; 3 | } 4 | -------------------------------------------------------------------------------- /actionview/test/fixtures/_top_level_partial.html.erb: -------------------------------------------------------------------------------- 1 | top level partial html -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layout_tests/views/goodbye.erb: -------------------------------------------------------------------------------- 1 | hello.erb -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layouts/_yield_only.erb: -------------------------------------------------------------------------------- 1 | <%= yield %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layouts/xhr.html.erb: -------------------------------------------------------------------------------- 1 | XHR! 2 | <%= yield %> -------------------------------------------------------------------------------- /actionview/test/fixtures/comments/empty.de.html.erb: -------------------------------------------------------------------------------- 1 |

Kein Kommentar

-------------------------------------------------------------------------------- /actionview/test/fixtures/comments/empty.html+grid.erb: -------------------------------------------------------------------------------- 1 |

No Comment

2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/comments/empty.html.builder: -------------------------------------------------------------------------------- 1 | xml.h1 "No Comment" 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/comments/_comment.html.erb: -------------------------------------------------------------------------------- 1 | Great story! 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/fun/games/hello_world.erb: -------------------------------------------------------------------------------- 1 | Living in a nested world -------------------------------------------------------------------------------- /actionview/test/fixtures/override/test/hello_world.erb: -------------------------------------------------------------------------------- 1 | Hello overridden world! -------------------------------------------------------------------------------- /actionview/test/fixtures/override2/layouts/test/sub.erb: -------------------------------------------------------------------------------- 1 | layout: <%= yield %> -------------------------------------------------------------------------------- /actionview/test/fixtures/public/javascripts/application.js: -------------------------------------------------------------------------------- 1 | // application js -------------------------------------------------------------------------------- /actionview/test/fixtures/public/javascripts/subdir/subdir.js: -------------------------------------------------------------------------------- 1 | // subdir js 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/public/javascripts/version.1.0.js: -------------------------------------------------------------------------------- 1 | // version.1.0 js -------------------------------------------------------------------------------- /actionview/test/fixtures/public/stylesheets/random.styles: -------------------------------------------------------------------------------- 1 | /* random.styles */ -------------------------------------------------------------------------------- /actionview/test/fixtures/respond_to/using_defaults_with_all.html.erb: -------------------------------------------------------------------------------- 1 | HTML! 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/hello_world.text+phone.erb: -------------------------------------------------------------------------------- 1 | Hello texty phone! -------------------------------------------------------------------------------- /actionview/test/fixtures/test/malformed/malformed.en.html.erb~: -------------------------------------------------------------------------------- 1 | Don't render me! -------------------------------------------------------------------------------- /actionview/test/fixtures/test/malformed/malformed.html.erb~: -------------------------------------------------------------------------------- 1 | Don't render me! -------------------------------------------------------------------------------- /actionview/test/fixtures/test/render_file_instance_variable.erb: -------------------------------------------------------------------------------- 1 | <%= @foo %> -------------------------------------------------------------------------------- /actionview/test/fixtures/translations/templates/found.erb: -------------------------------------------------------------------------------- 1 | <%= t('.foo') %> 2 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/strict_zines.yml: -------------------------------------------------------------------------------- 1 | going_out: 2 | title: Hello 3 | -------------------------------------------------------------------------------- /railties/lib/rails/generators/rails/app/templates/public/apple-touch-icon.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /railties/test/fixtures/lib/generators/usage_template/USAGE: -------------------------------------------------------------------------------- 1 | :: <%= 1 + 1 %> :: -------------------------------------------------------------------------------- /actionmailer/test/fixtures/auto_layout_mailer/multipart.html.erb: -------------------------------------------------------------------------------- 1 | text/html multipart -------------------------------------------------------------------------------- /actionmailer/test/fixtures/explicit_layout_mailer/logout.html.erb: -------------------------------------------------------------------------------- 1 | You logged out -------------------------------------------------------------------------------- /actionmailer/test/fixtures/explicit_layout_mailer/signup.html.erb: -------------------------------------------------------------------------------- 1 | We do not spam -------------------------------------------------------------------------------- /actionmailer/test/fixtures/layouts/different_layout.html.erb: -------------------------------------------------------------------------------- 1 | HTML -- <%= yield %> -------------------------------------------------------------------------------- /actionmailer/test/fixtures/layouts/different_layout.text.erb: -------------------------------------------------------------------------------- 1 | PLAIN -- <%= yield %> -------------------------------------------------------------------------------- /actionpack/test/controller/controller_fixtures/app/controllers/user_controller.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/public/foo/baz.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: #000; 3 | } 4 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layout_tests/alt/layouts/alt.erb: -------------------------------------------------------------------------------- 1 | alt.erb 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_counter.html.erb: -------------------------------------------------------------------------------- 1 | <%= counter_counter %> -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_form.erb: -------------------------------------------------------------------------------- 1 | <%= form.label :title %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_partial_only_html.html: -------------------------------------------------------------------------------- 1 | only html partial -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_second_json_partial.json.erb: -------------------------------------------------------------------------------- 1 | Third level -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/greeting.xml.erb: -------------------------------------------------------------------------------- 1 |

This is grand!

2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/proper_block_detection.erb: -------------------------------------------------------------------------------- 1 | <%= @todo %> -------------------------------------------------------------------------------- /actionview/test/fixtures/fun/serious/games/_game.erb: -------------------------------------------------------------------------------- 1 | Serious <%= game.name %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/layouts/_yield_with_params.erb: -------------------------------------------------------------------------------- 1 | <%= yield 'Yield!' %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/public/foo/baz.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: #000; 3 | } 4 | -------------------------------------------------------------------------------- /actionview/test/fixtures/public/javascripts/common.javascript: -------------------------------------------------------------------------------- 1 | // common.javascript -------------------------------------------------------------------------------- /actionview/test/fixtures/public/stylesheets/subdir/subdir.css: -------------------------------------------------------------------------------- 1 | /* subdir.css */ 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/public/stylesheets/version.1.0.css: -------------------------------------------------------------------------------- 1 | /* version.1.0.css */ -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_b_layout_for_partial.html.erb: -------------------------------------------------------------------------------- 1 | <%= yield %> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_object_inspector.erb: -------------------------------------------------------------------------------- 1 | <%= object_inspector.inspect -%> -------------------------------------------------------------------------------- /actionview/test/fixtures/translations/templates/array.erb: -------------------------------------------------------------------------------- 1 | <%= t('.foo.bar') %> 2 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/admin/accounts.yml: -------------------------------------------------------------------------------- 1 | signals37: 2 | name: 37signals 3 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/fk_test_has_fk.yml: -------------------------------------------------------------------------------- 1 | first: 2 | id: 1 3 | fk_id: 1 4 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/items.yml: -------------------------------------------------------------------------------- 1 | dvd: 2 | id: 1 3 | name: Godfather 4 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/trees.yml: -------------------------------------------------------------------------------- 1 | root: 2 | id: 1 3 | name: The Root 4 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/warehouse-things.yml: -------------------------------------------------------------------------------- 1 | one: 2 | id: 1 3 | value: 1000 -------------------------------------------------------------------------------- /activesupport/test/fixtures/xml/jdom_doctype.dtd: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /railties/lib/rails/generators/rails/generator/templates/templates/.empty_directory: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /railties/lib/rails/templates/rails/info/properties.html.erb: -------------------------------------------------------------------------------- 1 | <%= @info.html_safe %> -------------------------------------------------------------------------------- /actioncable/app/assets/javascripts/.gitattributes: -------------------------------------------------------------------------------- 1 | action_cable.js linguist-generated 2 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/another.path/base_mailer/welcome.erb: -------------------------------------------------------------------------------- 1 | Welcome from another path -------------------------------------------------------------------------------- /actionmailer/test/fixtures/asset_mailer/welcome.html.erb: -------------------------------------------------------------------------------- 1 | <%= image_tag "dummy.png" %> -------------------------------------------------------------------------------- /actionmailer/test/fixtures/auto_layout_mailer/multipart.text.erb: -------------------------------------------------------------------------------- 1 | text/plain multipart -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/attachment_with_hash_default_encoding.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_test/default_inline_attachment_mailer/welcome.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionpack/test/controller/controller_fixtures/app/controllers/admin/user_controller.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/using_defaults.xml.builder: -------------------------------------------------------------------------------- 1 | xml.p "Hello world!" 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/using_defaults_with_type_list.html.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/variant_any_implicit_render.html+phablet.erb: -------------------------------------------------------------------------------- 1 | phablet -------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/variant_any_implicit_render.html+tablet.erb: -------------------------------------------------------------------------------- 1 | tablet -------------------------------------------------------------------------------- /actionpack/test/fixtures/test/implicit_content_type.atom.builder: -------------------------------------------------------------------------------- 1 | xml.atom do 2 | end 3 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/test/render_file_with_ivar.erb: -------------------------------------------------------------------------------- 1 | The secret is <%= @secret %> 2 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/helpers/messages_helper.rb: -------------------------------------------------------------------------------- 1 | module MessagesHelper 2 | end 3 | -------------------------------------------------------------------------------- /actionview/test/actionpack/abstract/views/naked_render.erb: -------------------------------------------------------------------------------- 1 | Hello from naked_render.erb -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/fun/games/_form.erb: -------------------------------------------------------------------------------- 1 | <%= form.label :title %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/fun/games/hello_world.erb: -------------------------------------------------------------------------------- 1 | Living in a nested world -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layout_tests/layouts/item.erb: -------------------------------------------------------------------------------- 1 | item.erb <%= yield %> -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/formatted_html_erb.html.erb: -------------------------------------------------------------------------------- 1 | formatted html erb -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/formatted_xml_erb.builder: -------------------------------------------------------------------------------- 1 | xml.test "failed" 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/greeting.html.erb: -------------------------------------------------------------------------------- 1 |

This is grand!

2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/hello_world_with_layout_false.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/level/recursion.html.erb: -------------------------------------------------------------------------------- 1 | <%= render 'recursion' %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_one.html.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => "two" %> world 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/one.html.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => "test/two" %> world -------------------------------------------------------------------------------- /actionview/test/fixtures/translations/templates/missing.erb: -------------------------------------------------------------------------------- 1 | <%= t('.missing') %> 2 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/naked/yml/companies.yml: -------------------------------------------------------------------------------- 1 | # i wonder what will happen here 2 | -------------------------------------------------------------------------------- /railties/lib/rails/generators/erb/mailer/templates/layout.text.erb.tt: -------------------------------------------------------------------------------- 1 | <%%= yield %> 2 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/attachment_with_content.erb: -------------------------------------------------------------------------------- 1 | Attachment with content -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/implicit_multipart.html.erb: -------------------------------------------------------------------------------- 1 | HTML Implicit Multipart -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/implicit_multipart.text.erb: -------------------------------------------------------------------------------- 1 | TEXT Implicit Multipart -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/implicit_with_locale.html.erb: -------------------------------------------------------------------------------- 1 | Implicit with locale HTML -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/implicit_with_locale.text.erb: -------------------------------------------------------------------------------- 1 | Implicit with locale TEXT -------------------------------------------------------------------------------- /actionmailer/test/fixtures/layouts/auto_layout_mailer.html.erb: -------------------------------------------------------------------------------- 1 | Hello from layout <%= yield %> -------------------------------------------------------------------------------- /actionmailer/test/fixtures/templates/signed_up.erb: -------------------------------------------------------------------------------- 1 | Hello there, 2 | 3 | Mr. <%= @recipient %> -------------------------------------------------------------------------------- /actionpack/test/fixtures/functional_caching/_formatted_partial.html.erb: -------------------------------------------------------------------------------- 1 |

Hello!

2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/namespaced/implicit_render_test/hello_world.erb: -------------------------------------------------------------------------------- 1 | Hello world! 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/old_content_type/render_default_for_erb.erb: -------------------------------------------------------------------------------- 1 | <%= 'hello world!' %> -------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/custom_constant_handling_without_block.mobile.erb: -------------------------------------------------------------------------------- 1 | Mobile -------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/variant_inline_syntax_without_block.html+phone.erb: -------------------------------------------------------------------------------- 1 | phone -------------------------------------------------------------------------------- /actionpack/test/fixtures/test/formatted_xml_erb.xml.erb: -------------------------------------------------------------------------------- 1 | passed formatted xml erb -------------------------------------------------------------------------------- /actionpack/test/fixtures/test/render_file_with_locals.erb: -------------------------------------------------------------------------------- 1 | The secret is <%= secret %> 2 | -------------------------------------------------------------------------------- /actiontext/app/views/action_text/attachables/_missing_attachable.html.erb: -------------------------------------------------------------------------------- 1 | <%= "☒" -%> 2 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/helpers/application_helper.rb: -------------------------------------------------------------------------------- 1 | module ApplicationHelper 2 | end 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layouts/_yield_with_params.erb: -------------------------------------------------------------------------------- 1 | <%= yield 'Yield!' %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/quiz/questions/_question.html.erb: -------------------------------------------------------------------------------- 1 | <%= question.name %> -------------------------------------------------------------------------------- /actionview/test/fixtures/customers/_customer.html.erb: -------------------------------------------------------------------------------- 1 | <%= greeting %>: <%= customer.name %> -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/events/index.html.erb: -------------------------------------------------------------------------------- 1 | <% # Template Dependency: events/* %> -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/level/_recursion.html.erb: -------------------------------------------------------------------------------- 1 | <%= render 'recursion' %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_customer.erb: -------------------------------------------------------------------------------- 1 | Hello: <%= customer.name rescue "Anonymous" %> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_directory/_partial_with_locales.html.erb: -------------------------------------------------------------------------------- 1 | Hello <%= name %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/render_file_with_locals_and_default.erb: -------------------------------------------------------------------------------- 1 | <%= secret ||= 'one' %> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/render_template_with_ivar.erb: -------------------------------------------------------------------------------- 1 | The secret is <%= @secret %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/render_template_with_locals.erb: -------------------------------------------------------------------------------- 1 | The secret is <%= secret %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/streaming_with_locale.erb: -------------------------------------------------------------------------------- 1 | view.locale: <%= I18n.locale %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/syntax_error.html.erb: -------------------------------------------------------------------------------- 1 | <%= foo( 2 | 1, 3 | 2, 4 | %> 5 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/all/namespaced/accounts.yml: -------------------------------------------------------------------------------- 1 | signals37: 2 | name: 37signals 3 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/content.yml: -------------------------------------------------------------------------------- 1 | content: 2 | id: 1 3 | title: How to use Rails 4 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/naked/yml/trees.yml: -------------------------------------------------------------------------------- 1 | root: 2 | :id: 1 3 | :name: The Root 4 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/to_be_linked/accounts.yml: -------------------------------------------------------------------------------- 1 | signals37: 2 | name: 37signals 3 | -------------------------------------------------------------------------------- /activestorage/app/assets/javascripts/.gitattributes: -------------------------------------------------------------------------------- 1 | activestorage.js linguist-generated 2 | -------------------------------------------------------------------------------- /railties/lib/rails/generators/rails/app/templates/public/apple-touch-icon-precomposed.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/app/helpers/application_helper.rb: -------------------------------------------------------------------------------- 1 | module ApplicationHelper 2 | end 3 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/layouts/auto_layout_mailer.text.erb: -------------------------------------------------------------------------------- 1 | text/plain layout - <%= yield %> -------------------------------------------------------------------------------- /actionpack/test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib/plugin_controller.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/layouts/builder.builder: -------------------------------------------------------------------------------- 1 | xml.wrapper do 2 | xml << yield 3 | end 4 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/layouts/yield.erb: -------------------------------------------------------------------------------- 1 | <%= yield :title %> 2 | <%= yield %> 3 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/all_types_with_layout.html.erb: -------------------------------------------------------------------------------- 1 | HTML for all_types_with_layout -------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/variant_with_implicit_template_rendering.html+mobile.erb: -------------------------------------------------------------------------------- 1 | mobile -------------------------------------------------------------------------------- /actionpack/test/fixtures/star_star_mime/index.js.erb: -------------------------------------------------------------------------------- 1 | function addition(a,b){ return a+b; } 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/test/formatted_xml_erb.html.erb: -------------------------------------------------------------------------------- 1 | passed formatted html erb -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_partial_html_erb.html.erb: -------------------------------------------------------------------------------- 1 | <%= "partial.html.erb" %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/api/comments/_comment.json.erb: -------------------------------------------------------------------------------- 1 | {"content": "Great story!"} 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/level/below/index.html.erb: -------------------------------------------------------------------------------- 1 | <%= render partial: "header" %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/messages/_message.html.erb: -------------------------------------------------------------------------------- 1 | THIS BE WHERE THEM MESSAGE GO, YO! -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/messages/thread.json.erb: -------------------------------------------------------------------------------- 1 | <%= render "comments/comments" %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/layouts/yield.erb: -------------------------------------------------------------------------------- 1 | <%= yield :title %> 2 | <%= yield %> 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_customer.mobile.erb: -------------------------------------------------------------------------------- 1 | Hello: <%= customer.name rescue "Anonymous" %> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_customer_greeting.erb: -------------------------------------------------------------------------------- 1 | <%= greeting %>: <%= customer_greeting.name %> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_js_html_fallback.html.erb: -------------------------------------------------------------------------------- 1 | Hello from a HTML partial! 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_partial_for_use_in_layout.html.erb: -------------------------------------------------------------------------------- 1 | Inside from partial (<%= name %>) -------------------------------------------------------------------------------- /actionview/test/fixtures/test/sub_template_raise.html.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => "test/raise" %> -------------------------------------------------------------------------------- /activerecord/test/fixtures/collections.yml: -------------------------------------------------------------------------------- 1 | collection_1: 2 | id: 1 3 | name: Collection 4 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/legacy_things.yml: -------------------------------------------------------------------------------- 1 | obtuse: 2 | id: 1 3 | tps_report_number: 500 4 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/minimalistics.yml: -------------------------------------------------------------------------------- 1 | zero: 2 | id: 0 3 | 4 | first: 5 | id: 1 6 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/uuid_children.yml: -------------------------------------------------------------------------------- 1 | sonny: 2 | uuid_parent: daddy 3 | name: Sonny 4 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/.postcssrc.yml: -------------------------------------------------------------------------------- 1 | plugins: 2 | postcss-import: {} 3 | postcss-cssnext: {} 4 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/app/jobs/application_job.rb: -------------------------------------------------------------------------------- 1 | class ApplicationJob < ActiveJob::Base 2 | end 3 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/asset_host_mailer/email_with_asset.html.erb: -------------------------------------------------------------------------------- 1 | <%= image_tag "somelogo.png" %> -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/implicit_with_locale.de.html.erb: -------------------------------------------------------------------------------- 1 | Implicit with locale DE HTML -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/implicit_with_locale.en.html.erb: -------------------------------------------------------------------------------- 1 | Implicit with locale EN HTML -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/implicit_with_locale.pl.text.erb: -------------------------------------------------------------------------------- 1 | Implicit with locale PL TEXT -------------------------------------------------------------------------------- /actionpack/test/fixtures/load_me.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class LoadMe 4 | end 5 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/old_content_type/render_default_for_builder.builder: -------------------------------------------------------------------------------- 1 | xml.p "Hello world!" 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/post_test/layouts/post.html.erb: -------------------------------------------------------------------------------- 1 |
<%= yield %>
-------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/using_defaults_with_type_list.xml.builder: -------------------------------------------------------------------------------- 1 | xml.p "Hello world!" 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/test/dot.directory/render_file_with_ivar.erb: -------------------------------------------------------------------------------- 1 | The secret is <%= @secret %> 2 | -------------------------------------------------------------------------------- /actiontext/test/dummy/.postcssrc.yml: -------------------------------------------------------------------------------- 1 | plugins: 2 | postcss-import: {} 3 | postcss-cssnext: {} 4 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/jobs/application_job.rb: -------------------------------------------------------------------------------- 1 | class ApplicationJob < ActiveJob::Base 2 | end 3 | -------------------------------------------------------------------------------- /actiontext/test/fixtures/reviews.yml: -------------------------------------------------------------------------------- 1 | hello_world: 2 | message: $LABEL 3 | author_name: "Ruby" 4 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/customers/_customer.html.erb: -------------------------------------------------------------------------------- 1 | <%= greeting %>: <%= customer.name %> -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layout_tests/layouts/layout_test.erb: -------------------------------------------------------------------------------- 1 | layout_test.erb <%= yield %> -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_customer.erb: -------------------------------------------------------------------------------- 1 | Hello: <%= customer.name rescue "Anonymous" %> -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_labelling_form.erb: -------------------------------------------------------------------------------- 1 | <%= labelling_form.label :title %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_person.erb: -------------------------------------------------------------------------------- 1 | Second: <%= name %> 2 | Third: <%= @name %> 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/formatted_xml_erb.xml.erb: -------------------------------------------------------------------------------- 1 | passed formatted xml erb -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/implicit_content_type.atom.builder: -------------------------------------------------------------------------------- 1 | xml.atom do 2 | end 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/render_file_from_template.html.erb: -------------------------------------------------------------------------------- 1 | <%= render :file => @path %> -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/render_file_with_locals_and_default.erb: -------------------------------------------------------------------------------- 1 | <%= secret ||= 'one' %> -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/render_template_with_ivar.erb: -------------------------------------------------------------------------------- 1 | The secret is <%= @secret %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/comments/show.js.erb: -------------------------------------------------------------------------------- 1 | alert("<%=j render("comments/comment") %>") 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/plain_text_with_characters.raw: -------------------------------------------------------------------------------- 1 | Here are some characters: !@#$%^&*()-="'}{` 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_partial_name_local_variable.erb: -------------------------------------------------------------------------------- 1 | <%= partial_name_local_variable %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_partial_with_only_html_version.html.erb: -------------------------------------------------------------------------------- 1 | partial with only html version -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_partial_with_variants.html+grid.erb: -------------------------------------------------------------------------------- 1 |

Partial with variants

2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_template_not_named_customer.html.erb: -------------------------------------------------------------------------------- 1 | Hello: <%= customer.name %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/translations/templates/_partial.html.erb: -------------------------------------------------------------------------------- 1 | <%= t('.foo') %> 2 | <%= yield %> 3 | -------------------------------------------------------------------------------- /activerecord/.gitignore: -------------------------------------------------------------------------------- 1 | /sqlnet.log 2 | /test/config.yml 3 | /test/db/ 4 | /test/fixtures/*.sqlite* 5 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/content_positions.yml: -------------------------------------------------------------------------------- 1 | content_positions: 2 | id: 1 3 | content_id: 1 4 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/dogs.yml: -------------------------------------------------------------------------------- 1 | sophie: 2 | id: 1 3 | trainer_id: 1 4 | dog_lover_id: 2 5 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/humans.yml: -------------------------------------------------------------------------------- 1 | gordon: 2 | name: Gordon 3 | 4 | steve: 5 | name: Steve 6 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/d.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class D 4 | end 5 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/typo.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | TypO = 1 4 | -------------------------------------------------------------------------------- /activesupport/test/dependencies/conflict.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | Conflict = 1 4 | -------------------------------------------------------------------------------- /railties/test/fixtures/Rakefile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | Rails.application.load_tasks 4 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/email_with_translations.html.erb: -------------------------------------------------------------------------------- 1 | <%= t('.greet_user', name: 'lifo') %> -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/explicit_multipart_with_one_template.erb: -------------------------------------------------------------------------------- 1 | <%= self.formats.inspect %> -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/implicit_with_locale.de-AT.text.erb: -------------------------------------------------------------------------------- 1 | Implicit with locale DE-AT TEXT -------------------------------------------------------------------------------- /actionmailer/test/fixtures/caching_mailer/fragment_cache_in_partials.html.erb: -------------------------------------------------------------------------------- 1 | <%= render "partial" %> 2 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/url_test_mailer/exercise_url_for.erb: -------------------------------------------------------------------------------- 1 | <%= url_for(@options) %> <%= @url %> 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/implicit_render_test/empty_action_with_mobile_variant.html+mobile.erb: -------------------------------------------------------------------------------- 1 | mobile 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/layouts/_customers.erb: -------------------------------------------------------------------------------- 1 | <%= yield Struct.new(:name).new("David") %> -------------------------------------------------------------------------------- /actionpack/test/fixtures/layouts/standard.html.erb: -------------------------------------------------------------------------------- 1 | <%= yield %><%= @variable_for_layout %> 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/iphone_with_html_response_type.html.erb: -------------------------------------------------------------------------------- 1 | Hello future from <%= @type -%>! -------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/layouts/standard.html.erb: -------------------------------------------------------------------------------- 1 |
<%= yield %>
-------------------------------------------------------------------------------- /actiontext/app/views/action_text/contents/_content.html.erb: -------------------------------------------------------------------------------- 1 | <%= render_action_text_content(content) %> 2 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/javascript/packs/application.js: -------------------------------------------------------------------------------- 1 | import "trix" 2 | import "@rails/actiontext" 3 | -------------------------------------------------------------------------------- /actionview/test/actionpack/abstract/views/abstract_controller/testing/me3/index.erb: -------------------------------------------------------------------------------- 1 | Hello from me3/index.erb -------------------------------------------------------------------------------- /actionview/test/actionpack/abstract/views/abstract_controller/testing/me4/index.erb: -------------------------------------------------------------------------------- 1 | Hello from me4/index.erb -------------------------------------------------------------------------------- /actionview/test/actionpack/abstract/views/action_with_ivars.erb: -------------------------------------------------------------------------------- 1 | <%= @my_ivar %> from index_with_ivars.erb -------------------------------------------------------------------------------- /actionview/test/actionpack/abstract/views/helper_test.erb: -------------------------------------------------------------------------------- 1 | Hello <%= helpery_test %> : <%= included_method %> -------------------------------------------------------------------------------- /actionview/test/actionpack/abstract/views/layouts/application.erb: -------------------------------------------------------------------------------- 1 | Application Enter : <%= yield %> : Exit -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layouts/builder.builder: -------------------------------------------------------------------------------- 1 | xml.wrapper do 2 | xml << yield 3 | end 4 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_directory/_partial_with_locales.html.erb: -------------------------------------------------------------------------------- 1 | Hello <%= name %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/formatted_xml_erb.html.erb: -------------------------------------------------------------------------------- 1 | passed formatted html erb -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/render_implicit_html_template_from_xhr_request.html.erb: -------------------------------------------------------------------------------- 1 | Hello HTML! -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/render_implicit_js_template_without_layout.js.erb: -------------------------------------------------------------------------------- 1 | alert('hello'); -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/render_template_with_locals.erb: -------------------------------------------------------------------------------- 1 | The secret is <%= secret %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/render_to_string_test.erb: -------------------------------------------------------------------------------- 1 | The value of foo is: ::<%= @foo %>:: 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/layouts/_customers.erb: -------------------------------------------------------------------------------- 1 | <%= yield Struct.new(:name).new("David") %> -------------------------------------------------------------------------------- /actionview/test/fixtures/mascots.yml: -------------------------------------------------------------------------------- 1 | upload_bird: 2 | id: 1 3 | company_id: 1 4 | name: The Upload Bird -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_layout_for_partial.html.erb: -------------------------------------------------------------------------------- 1 | Before (<%= name %>) 2 | <%= yield %> 3 | After -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_partial_iteration_1.erb: -------------------------------------------------------------------------------- 1 | <%= defined?(partial_iteration_1_iteration) %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_partial_iteration_2.erb: -------------------------------------------------------------------------------- 1 | <%= defined?(partial_iteration_2_iteration) -%> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_utf8_partial_magic.html.erb: -------------------------------------------------------------------------------- 1 | <%# encoding: utf-8 -%> 2 | <%= "текст" %> 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/dot.directory/render_template_with_ivar.erb: -------------------------------------------------------------------------------- 1 | The secret is <%= @secret %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/render_file_inspect_local_assigns.erb: -------------------------------------------------------------------------------- 1 | <%= local_assigns.inspect.html_safe %> -------------------------------------------------------------------------------- /actionview/test/fixtures/translations/templates/default.erb: -------------------------------------------------------------------------------- 1 | <%= t('.missing', :default => :'.foo') %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/with_format.json.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => 'missing', :formats => [:json] %> 2 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/colleges.yml: -------------------------------------------------------------------------------- 1 | FIU: 2 | id: 1 3 | name: Florida International University 4 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/doubloons.yml: -------------------------------------------------------------------------------- 1 | blackbeards_doubloon: 2 | pirate: blackbeard 3 | weight: 2 4 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/variants.yml: -------------------------------------------------------------------------------- 1 | variant_1: 2 | id: 1 3 | product_id: 1 4 | name: Variant 5 | -------------------------------------------------------------------------------- /activerecord/test/models/publisher.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module Publisher 4 | end 5 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/a/b.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class A::B 4 | end 5 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/conflict.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | Conflict = 2 4 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/em.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class EM 4 | end 5 | -------------------------------------------------------------------------------- /railties/lib/rails/generators/rails/app/templates/app/views/layouts/mailer.text.erb.tt: -------------------------------------------------------------------------------- 1 | <%%= yield %> 2 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/explicit_multipart_templates.html.erb: -------------------------------------------------------------------------------- 1 | HTML Explicit Multipart Templates -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/explicit_multipart_templates.text.erb: -------------------------------------------------------------------------------- 1 | TEXT Explicit Multipart Templates -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/inline_attachment.text.erb: -------------------------------------------------------------------------------- 1 | Inline Image 2 | 3 | No image for you 4 | 5 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/without_mail_call.erb: -------------------------------------------------------------------------------- 1 | <% raise 'the template should not be rendered' %> -------------------------------------------------------------------------------- /actionpack/test/fixtures/old_content_type/render_default_content_types_for_respond_to.xml.erb: -------------------------------------------------------------------------------- 1 | world -------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/layouts/standard.iphone.erb: -------------------------------------------------------------------------------- 1 |
<%= yield %>
-------------------------------------------------------------------------------- /actionpack/test/fixtures/ruby_template.ruby: -------------------------------------------------------------------------------- 1 | body = "" 2 | body << ["Hello", "from", "Ruby", "code"].join(" ") 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layouts/standard.html.erb: -------------------------------------------------------------------------------- 1 | <%= yield %><%= @variable_for_layout %> -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layouts/standard.text.erb: -------------------------------------------------------------------------------- 1 | {{<%= yield %><%= @variable_for_layout %>}} 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layouts/yield.erb: -------------------------------------------------------------------------------- 1 | <%= yield :title %> 2 | <%= yield %> 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_customer_counter_with_as.erb: -------------------------------------------------------------------------------- 1 | <%= client.name %><%= client_counter %> -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_customer_greeting.erb: -------------------------------------------------------------------------------- 1 | <%= greeting %>: <%= customer_greeting.name %> -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_hash_greeting.erb: -------------------------------------------------------------------------------- 1 | <%= greeting %>: <%= hash_greeting[:first_name] %> -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_partial_for_use_in_layout.html.erb: -------------------------------------------------------------------------------- 1 | Inside from partial (<%= name %>) -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_partial_name_local_variable.erb: -------------------------------------------------------------------------------- 1 | <%= partial_name_local_variable %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/render_implicit_html_template_from_xhr_request.da.html.erb: -------------------------------------------------------------------------------- 1 | Hey HTML! 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/with_partial.text.erb: -------------------------------------------------------------------------------- 1 | **<%= render :partial => "partial_only" %>** 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/messages/index.html.erb: -------------------------------------------------------------------------------- 1 | <%= render @messages %> 2 | <%= render @events %> 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/layouts/streaming_with_locale.erb: -------------------------------------------------------------------------------- 1 | layout.locale: <%= I18n.locale %> 2 | <%= yield %> 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_first_json_partial.json.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => "test/second_json_partial" %> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_partial_with_partial.erb: -------------------------------------------------------------------------------- 1 | <%= render 'test/partial' %> 2 | partial with partial 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/render_file_with_ruby_keyword_locals.erb: -------------------------------------------------------------------------------- 1 | The class is <%= local_assigns[:class] %> -------------------------------------------------------------------------------- /activerecord/test/assets/example.log: -------------------------------------------------------------------------------- 1 | # Logfile created on Wed Oct 31 16:05:13 +0000 2007 by logger.rb/1.5.2.9 2 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/bulbs.yml: -------------------------------------------------------------------------------- 1 | defaulty: 2 | name: defaulty 3 | 4 | special: 5 | name: special 6 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/friendships.yml: -------------------------------------------------------------------------------- 1 | Connection 1: 2 | id: 1 3 | friend_id: 1 4 | follower_id: 2 5 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/naked/yml/courses_with_invalid_key.yml: -------------------------------------------------------------------------------- 1 | one: 2 | id: 1 3 | two: ['not a hash'] 4 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/naked/yml/parrots.yml: -------------------------------------------------------------------------------- 1 | george: 2 | arrr: "Curious George" 3 | foobar: Foobar 4 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/products.yml: -------------------------------------------------------------------------------- 1 | product_1: 2 | id: 1 3 | collection_id: 1 4 | name: Product 5 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/reserved_words/distinct.yml: -------------------------------------------------------------------------------- 1 | distinct1: 2 | id: 1 3 | 4 | distinct2: 5 | id: 2 6 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/a/c/d.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class A::C::D 4 | end 5 | -------------------------------------------------------------------------------- /guides/assets/images/bullet.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/bullet.gif -------------------------------------------------------------------------------- /guides/assets/javascripts/.gitattributes: -------------------------------------------------------------------------------- 1 | clipboard.js linguist-vendored 2 | turbolinks.js linguist-vendored 3 | -------------------------------------------------------------------------------- /guides/assets/stylesheets/turbolinks.css: -------------------------------------------------------------------------------- 1 | .turbolinks-progress-bar { 2 | background-color: #c52f24; 3 | } 4 | -------------------------------------------------------------------------------- /.yardopts: -------------------------------------------------------------------------------- 1 | --exclude /templates/ 2 | --quiet 3 | act*/lib/**/*.rb 4 | act*/app/**/*.rb 5 | railties/lib/**/*.rb 6 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/implicit_multipart_formats.html.erb: -------------------------------------------------------------------------------- 1 | Implicit Multipart <%= formats.inspect %> -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/implicit_multipart_formats.text.erb: -------------------------------------------------------------------------------- 1 | Implicit Multipart <%= formats.inspect %> -------------------------------------------------------------------------------- /actionpack/test/fixtures/layouts/talk_from_action.erb: -------------------------------------------------------------------------------- 1 | <%= @title || yield(:title) %> 2 | <%= yield -%> -------------------------------------------------------------------------------- /actionpack/test/fixtures/post_test/layouts/super_post.iphone.erb: -------------------------------------------------------------------------------- 1 |
<%= yield %>
-------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/iphone_with_html_response_type.iphone.erb: -------------------------------------------------------------------------------- 1 | Hello iPhone future from <%= @type -%>! -------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/layouts/missing.html.erb: -------------------------------------------------------------------------------- 1 |
<%= yield %>
-------------------------------------------------------------------------------- /actionpack/test/fixtures/test/hello_world_with_partial.html.erb: -------------------------------------------------------------------------------- 1 | Hello world! 2 | <%= render '/test/partial' %> 3 | -------------------------------------------------------------------------------- /actionview/test/actionpack/abstract/views/layouts/abstract_controller/testing/me4.erb: -------------------------------------------------------------------------------- 1 | Me4 Enter : <%= yield %> : Exit -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layouts/_customers.erb: -------------------------------------------------------------------------------- 1 | <%= yield Struct.new(:name).new("David") %> -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_layout_for_partial.html.erb: -------------------------------------------------------------------------------- 1 | Before (<%= name %>) 2 | <%= yield %> 3 | After -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/dot.directory/render_template_with_ivar.erb: -------------------------------------------------------------------------------- 1 | The secret is <%= @secret %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/hello_world_from_rxml.builder: -------------------------------------------------------------------------------- 1 | xml.html do 2 | xml.p "Hello" 3 | end 4 | -------------------------------------------------------------------------------- /actionview/test/fixtures/layouts/_partial_and_yield.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => 'test/partial' %> 2 | <%= yield %> 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/ruby_template.ruby: -------------------------------------------------------------------------------- 1 | body = +"" 2 | body << ["Hello", "from", "Ruby", "code"].join(" ") 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_customer_with_var.erb: -------------------------------------------------------------------------------- 1 | <%= customer.name %> <%= customer.name %> <%= customer.name %> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_layout_for_block_with_args.html.erb: -------------------------------------------------------------------------------- 1 | Before 2 | <%= yield 'arg1', 'arg2' %> 3 | After -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_local_inspector.html.erb: -------------------------------------------------------------------------------- 1 | <%= local_assigns.keys.map {|k| k.to_s }.sort.join(",") -%> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/hello_world_with_partial.html.erb: -------------------------------------------------------------------------------- 1 | Hello world! 2 | <%= render '/test/partial' %> 3 | -------------------------------------------------------------------------------- /activejob/test/adapters/inline.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | ActiveJob::Base.queue_adapter = :inline 4 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/author_favorites.yml: -------------------------------------------------------------------------------- 1 | david_mary: 2 | id: 1 3 | author_id: 1 4 | favorite_author_id: 2 -------------------------------------------------------------------------------- /activerecord/test/models/guid.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Guid < ActiveRecord::Base 4 | end 5 | -------------------------------------------------------------------------------- /activesupport/test/dependencies/service_two.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class ServiceTwo 4 | end 5 | -------------------------------------------------------------------------------- /guides/assets/images/book_icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/book_icon.gif -------------------------------------------------------------------------------- /guides/assets/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/favicon.ico -------------------------------------------------------------------------------- /guides/assets/images/nav_arrow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/nav_arrow.gif -------------------------------------------------------------------------------- /guides/assets/images/tab_grey.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/tab_grey.gif -------------------------------------------------------------------------------- /guides/assets/images/tab_info.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/tab_info.gif -------------------------------------------------------------------------------- /guides/assets/images/tab_note.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/tab_note.gif -------------------------------------------------------------------------------- /guides/assets/images/tab_red.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/tab_red.gif -------------------------------------------------------------------------------- /actionmailer/test/fixtures/caching_mailer/fragment_cache.html.erb: -------------------------------------------------------------------------------- 1 | <% cache :caching do %> 2 | "Welcome" 3 | <% end %> 4 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/functional_caching/html_fragment_cached_with_partial.html.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => 'partial' %> -------------------------------------------------------------------------------- /actionpack/test/fixtures/layouts/with_html_partial.html.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => "partial_only_html" %><%= yield %> 2 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/views/people/_attachable.html.erb: -------------------------------------------------------------------------------- 1 | <%= person.name %> 2 | -------------------------------------------------------------------------------- /actionview/.gitignore: -------------------------------------------------------------------------------- 1 | /lib/assets/compiled/ 2 | /log/ 3 | /test/fixtures/public/absolute/ 4 | /test/ujs/log/ 5 | /tmp/ 6 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_customer_counter.erb: -------------------------------------------------------------------------------- 1 | <%= customer_counter.name %><%= customer_counter_counter %> -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_first_json_partial.json.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => "test/second_json_partial" %> -------------------------------------------------------------------------------- /actionview/test/fixtures/customers/_customer.xml.erb: -------------------------------------------------------------------------------- 1 | <%= greeting %><%= customer.name %> -------------------------------------------------------------------------------- /actionview/test/fixtures/layouts/render_partial_html.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => 'test/partialhtml' %> 2 | <%= yield %> 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/html_template.html.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => "test/first_json_partial", formats: :json %> -------------------------------------------------------------------------------- /activerecord/test/assets/flowers.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/activerecord/test/assets/flowers.jpg -------------------------------------------------------------------------------- /activerecord/test/fixtures/vertices.yml: -------------------------------------------------------------------------------- 1 | <% (1..5).each do |id| %> 2 | vertex_<%= id %>: 3 | id: <%= id %> 4 | <% end %> -------------------------------------------------------------------------------- /activerecord/test/models/binary.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Binary < ActiveRecord::Base 4 | end 5 | -------------------------------------------------------------------------------- /activerecord/test/models/carrier.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Carrier < ActiveRecord::Base 4 | end 5 | -------------------------------------------------------------------------------- /activerecord/test/models/default.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Default < ActiveRecord::Base 4 | end 5 | -------------------------------------------------------------------------------- /activerecord/test/models/record.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Record < ActiveRecord::Base 4 | end 5 | -------------------------------------------------------------------------------- /activestorage/test/dummy/config/storage.yml: -------------------------------------------------------------------------------- 1 | local: 2 | service: Disk 3 | root: <%= Rails.root.join("storage") %> 4 | -------------------------------------------------------------------------------- /activestorage/test/dummy/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "dummy", 3 | "private": true, 4 | "dependencies": {} 5 | } 6 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/a/c/em/f.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class A::C::EM::F 4 | end 5 | -------------------------------------------------------------------------------- /guides/assets/images/edge_badge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/edge_badge.png -------------------------------------------------------------------------------- /guides/assets/images/footer_tile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/footer_tile.gif -------------------------------------------------------------------------------- /guides/assets/images/grey_bullet.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/grey_bullet.gif -------------------------------------------------------------------------------- /guides/assets/images/header_tile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/header_tile.gif -------------------------------------------------------------------------------- /guides/assets/images/tab_yellow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/tab_yellow.gif -------------------------------------------------------------------------------- /railties/lib/rails/generators/rails/app/templates/app/helpers/application_helper.rb.tt: -------------------------------------------------------------------------------- 1 | module ApplicationHelper 2 | end 3 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/inline_and_other_attachments.text.erb: -------------------------------------------------------------------------------- 1 | Inline Image 2 | 3 | No image for you 4 | 5 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/functional_caching/_partial.erb: -------------------------------------------------------------------------------- 1 | <% cache do %> 2 | Old fragment caching in a partial 3 | <% end %> 4 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/models/page.rb: -------------------------------------------------------------------------------- 1 | class Page < ApplicationRecord 2 | include ActionText::Attachable 3 | end 4 | 5 | -------------------------------------------------------------------------------- /actionview/test/actionpack/abstract/views/abstract_controller/testing/me3/formatted.html.erb: -------------------------------------------------------------------------------- 1 | Hello from me3/formatted.html.erb -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layouts/_partial_and_yield.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => 'test/partial' %> 2 | <%= yield %> 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layouts/talk_from_action.erb: -------------------------------------------------------------------------------- 1 | <%= @title || yield(:title) %> 2 | <%= yield -%> -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_customer_with_var.erb: -------------------------------------------------------------------------------- 1 | <%= customer.name %> <%= customer.name %> <%= customer.name %> -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_partial_with_partial.erb: -------------------------------------------------------------------------------- 1 | <%= render 'test/partial' %> 2 | partial with partial 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/action_talk_to_layout.erb: -------------------------------------------------------------------------------- 1 | <% @title = "Talking to the layout" -%> 2 | Action was here! -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/capturing.erb: -------------------------------------------------------------------------------- 1 | <% days = capture do %> 2 | Dreamy days 3 | <% end %> 4 | <%= days %> -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/hello_world_with_partial.html.erb: -------------------------------------------------------------------------------- 1 | Hello world! 2 | <%= render '/test/partial' %> 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/with_partial.html.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => "partial_only" %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/layouts/yield_with_render_inline_inside.erb: -------------------------------------------------------------------------------- 1 | <%= render :inline => 'welcome' %> 2 | <%= yield %> 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_partial_name_in_local_assigns.erb: -------------------------------------------------------------------------------- 1 | <%= local_assigns.has_key?(:partial_name_in_local_assigns) %> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/test_template_with_delegation_reserved_keywords.erb: -------------------------------------------------------------------------------- 1 | <%= _ %> <%= arg %> <%= args %> <%= block %> -------------------------------------------------------------------------------- /activejob/test/jobs/application_job.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class ApplicationJob < ActiveJob::Base 4 | end 5 | -------------------------------------------------------------------------------- /activemodel/test/models/sheep.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Sheep 4 | extend ActiveModel::Naming 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/organizations.yml: -------------------------------------------------------------------------------- 1 | nsa: 2 | name: No Such Agency 3 | discordians: 4 | name: Discordians 5 | 6 | -------------------------------------------------------------------------------- /activerecord/test/models/autoloadable/extra_firm.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class ExtraFirm < Company 4 | end 5 | -------------------------------------------------------------------------------- /activestorage/test/dummy/config/routes.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | Rails.application.routes.draw do 4 | end 5 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/application.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | ApplicationController = 10 4 | -------------------------------------------------------------------------------- /guides/assets/images/chapters_icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/chapters_icon.gif -------------------------------------------------------------------------------- /guides/assets/images/check_bullet.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/check_bullet.gif -------------------------------------------------------------------------------- /guides/assets/images/feature_tile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/feature_tile.gif -------------------------------------------------------------------------------- /guides/assets/images/security/csrf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/security/csrf.png -------------------------------------------------------------------------------- /actionmailbox/test/dummy/app/controllers/application_controller.rb: -------------------------------------------------------------------------------- 1 | class ApplicationController < ActionController::Base 2 | end 3 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/implicit_render_test/empty_action_with_template.html.erb: -------------------------------------------------------------------------------- 1 |

Empty action rendered this implicitly.

2 | -------------------------------------------------------------------------------- /actiontext/app/views/layouts/action_text/contents/_content.html.erb: -------------------------------------------------------------------------------- 1 |
2 | <%= yield -%> 3 |
4 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/views/messages_mailer/notification.html.erb: -------------------------------------------------------------------------------- 1 |
<%= @message.content %>
2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layout_tests/layouts/multiple_extensions.html.erb: -------------------------------------------------------------------------------- 1 | multiple_extensions.html.erb <%= yield %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layout_tests/layouts/third_party_template_library.mab: -------------------------------------------------------------------------------- 1 | layouts/third_party_template_library.mab -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layouts/with_html_partial.html.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => "partial_only_html" %><%= yield %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/content_for.erb: -------------------------------------------------------------------------------- 1 | <% content_for :title do -%>Putting stuff in the title!<% end -%>Great stuff! -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/html_template.html.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => "test/first_json_partial", formats: :json %> -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/with_xml_template.html.erb: -------------------------------------------------------------------------------- 1 | <%= render :template => "test/greeting", :formats => :xml %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/layouts/_column.html.erb: -------------------------------------------------------------------------------- 1 |
<%= yield :column %>
2 |
<%= yield %>
-------------------------------------------------------------------------------- /actionview/test/fixtures/layouts/yield_with_render_partial_inside.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => 'test/partial' %> 2 | <%= yield %> 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_b_layout_for_partial_with_object.html.erb: -------------------------------------------------------------------------------- 1 | <%= yield %> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_builder_tag_nested_in_content_tag.erb: -------------------------------------------------------------------------------- 1 | <%= tag.p do %> 2 | <%= tag.b 'Hello' %> 3 | <% end %> 4 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_cached_customer_as.erb: -------------------------------------------------------------------------------- 1 | <% cache buyer do %> 2 | <%= greeting %>: <%= customer.name %> 3 | <% end %> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/streaming_buster.erb: -------------------------------------------------------------------------------- 1 | <%= yield :foo -%> 2 | This won't look 3 | <% provide :unknown, " good." -%> 4 | -------------------------------------------------------------------------------- /actionview/test/fixtures/translations/templates/partial_lazy_translation.html.erb: -------------------------------------------------------------------------------- 1 | <%= render("translations/templates/partial") %> 2 | -------------------------------------------------------------------------------- /activerecord/test/models/measurement.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Measurement < ActiveRecord::Base 4 | end 5 | -------------------------------------------------------------------------------- /activerecord/test/models/minimalistic.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Minimalistic < ActiveRecord::Base 4 | end 5 | -------------------------------------------------------------------------------- /activestorage/test/dummy/app/assets/config/manifest.js: -------------------------------------------------------------------------------- 1 | 2 | //= link_tree ../images 3 | //= link_directory ../stylesheets .css 4 | -------------------------------------------------------------------------------- /activesupport/test/dependencies/requires_nonexistent0.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "RMagickDontExistDude" 4 | -------------------------------------------------------------------------------- /activesupport/test/fixtures/autoload/another_class.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Fixtures::AnotherClass 4 | end 5 | -------------------------------------------------------------------------------- /railties/test/fixtures/lib/create_test_dummy_template.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | create_dummy_app("spec/dummy") 4 | -------------------------------------------------------------------------------- /railties/test/fixtures/lib/generators/model_generator.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | raise "I should never be loaded" 4 | -------------------------------------------------------------------------------- /actioncable/app/javascript/action_cable/adapters.js: -------------------------------------------------------------------------------- 1 | export default { 2 | logger: self.console, 3 | WebSocket: self.WebSocket 4 | } 5 | -------------------------------------------------------------------------------- /actionpack/lib/action_dispatch/middleware/templates/rescues/unknown_action.text.erb: -------------------------------------------------------------------------------- 1 | Unknown action 2 | 3 | <%= @exception.message %> 4 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/helpers/abc_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module AbcHelper 4 | def bare_a() end 5 | end 6 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/公共/gzip/foo.zoo.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/actionpack/test/fixtures/公共/gzip/foo.zoo.gz -------------------------------------------------------------------------------- /actiontext/test/dummy/bin/rake: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require_relative "../config/boot" 3 | require "rake" 4 | Rake.application.run 5 | -------------------------------------------------------------------------------- /actiontext/test/fixtures/files/racecar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/actiontext/test/fixtures/files/racecar.jpg -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layout_tests/layouts/controller_name_space/nested.erb: -------------------------------------------------------------------------------- 1 | controller_name_space/nested.erb <%= yield %> -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layouts/yield_with_render_inline_inside.erb: -------------------------------------------------------------------------------- 1 | <%= render :inline => 'welcome' %> 2 | <%= yield %> 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_hash_object.erb: -------------------------------------------------------------------------------- 1 | <%= hash_object[:first_name] %> 2 | <%= hash_object[:first_name].reverse %> 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/with_html_partial.html.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => "partial_only_html" %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/helpers/abc_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module AbcHelper 4 | def bare_a() end 5 | end 6 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_b_layout_for_partial_with_object_counter.html.erb: -------------------------------------------------------------------------------- 1 | <%= yield %> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_cached_customer.erb: -------------------------------------------------------------------------------- 1 | <% cache cached_customer do %> 2 | Hello: <%= cached_customer.name %> 3 | <% end %> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/js_html_fallback.js.erb: -------------------------------------------------------------------------------- 1 | document.write("<%= j render(partial: "js_html_fallback").chomp.html_safe %>") 2 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/reserved_words/select.yml: -------------------------------------------------------------------------------- 1 | select1: 2 | id: 1 3 | 4 | select2: 5 | id: 2 6 | 7 | select3: 8 | id: 3 9 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/zines.yml: -------------------------------------------------------------------------------- 1 | staying_in: 2 | title: Staying in '08 3 | 4 | going_out: 5 | title: Outdoor Pursuits 2k+8 6 | -------------------------------------------------------------------------------- /activerecord/test/models/non_primary_key.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class NonPrimaryKey < ActiveRecord::Base 4 | end 5 | -------------------------------------------------------------------------------- /activestorage/test/dummy/app/helpers/application_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module ApplicationHelper 4 | end 5 | -------------------------------------------------------------------------------- /activestorage/test/fixtures/files/colors.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/activestorage/test/fixtures/files/colors.bmp -------------------------------------------------------------------------------- /activestorage/test/fixtures/files/icon.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/activestorage/test/fixtures/files/icon.psd -------------------------------------------------------------------------------- /activestorage/test/fixtures/files/image.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/activestorage/test/fixtures/files/image.gif -------------------------------------------------------------------------------- /activestorage/test/fixtures/files/report.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/activestorage/test/fixtures/files/report.pdf -------------------------------------------------------------------------------- /activestorage/test/fixtures/files/video.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/activestorage/test/fixtures/files/video.mp4 -------------------------------------------------------------------------------- /activestorage/test/fixtures/files/video.webm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/activestorage/test/fixtures/files/video.webm -------------------------------------------------------------------------------- /activesupport/lib/active_support/core_ext/file.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "active_support/core_ext/file/atomic" 4 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/circular2.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | Circular1 4 | 5 | class Circular2 6 | end 7 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/should_not_be_required.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | ShouldNotBeAutoloaded = 0 4 | -------------------------------------------------------------------------------- /activesupport/test/fixtures/autoload/some_class.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Fixtures::Autoload::SomeClass 4 | end 5 | -------------------------------------------------------------------------------- /guides/assets/images/i18n/demo_html_safe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/i18n/demo_html_safe.png -------------------------------------------------------------------------------- /guides/assets/images/rails_guides_logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/rails_guides_logo.gif -------------------------------------------------------------------------------- /railties/lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/version.rb.tt: -------------------------------------------------------------------------------- 1 | <%= wrap_in_modules "VERSION = '0.1.0'" %> 2 | -------------------------------------------------------------------------------- /actionmailbox/.gitignore: -------------------------------------------------------------------------------- 1 | /test/dummy/db/*.sqlite3 2 | /test/dummy/db/*.sqlite3-* 3 | /test/dummy/log/*.log 4 | /test/dummy/tmp/ 5 | /tmp/ 6 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/app/mailboxes/messages_mailbox.rb: -------------------------------------------------------------------------------- 1 | class MessagesMailbox < ApplicationMailbox 2 | def process 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/bin/rake: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require_relative "../config/boot" 3 | require "rake" 4 | Rake.application.run 5 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/config/initializers/secret_token.rb: -------------------------------------------------------------------------------- 1 | Rails.application.config.secret_key_base = "b3c631c314c0bbca50c1b2843150fe33" 2 | -------------------------------------------------------------------------------- /actionmailbox/test/fixtures/files/avatar1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/actionmailbox/test/fixtures/files/avatar1.jpeg -------------------------------------------------------------------------------- /actionmailbox/test/fixtures/files/avatar2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/actionmailbox/test/fixtures/files/avatar2.jpeg -------------------------------------------------------------------------------- /actionmailer/test/fixtures/attachments/foo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/actionmailer/test/fixtures/attachments/foo.jpg -------------------------------------------------------------------------------- /actionmailer/test/fixtures/caching_mailer/_partial.html.erb: -------------------------------------------------------------------------------- 1 | <% cache :caching do %> 2 | Old fragment caching in a partial 3 | <% end %> 4 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/bad_customers/_bad_customer.html.erb: -------------------------------------------------------------------------------- 1 | <%= greeting %> bad customer: <%= bad_customer.name %><%= bad_customer_counter %> -------------------------------------------------------------------------------- /actionpack/test/fixtures/collection_cache/index.html.erb: -------------------------------------------------------------------------------- 1 | <%= render partial: 'customers/customer', collection: @customers, cached: true %> 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/multipart/binary_file: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/actionpack/test/fixtures/multipart/binary_file -------------------------------------------------------------------------------- /actionpack/test/fixtures/multipart/mixed_files: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/actionpack/test/fixtures/multipart/mixed_files -------------------------------------------------------------------------------- /actionpack/test/fixtures/公共/foo/さようなら.html.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/actionpack/test/fixtures/公共/foo/さようなら.html.gz -------------------------------------------------------------------------------- /actiontext/test/fixtures/messages.yml: -------------------------------------------------------------------------------- 1 | hello_alice: 2 | subject: "A message to Alice" 3 | 4 | hello_world: 5 | subject: "A greeting" 6 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layouts/yield_with_render_partial_inside.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => 'test/partial' %> 2 | <%= yield %> 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/comments/_comments.html.erb: -------------------------------------------------------------------------------- 1 | <%= render partial: "comments/comment", collection: commentable.comments %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/messages/peek.html.erb: -------------------------------------------------------------------------------- 1 | <%# Template Dependency: messages/message %> 2 | <%= render "comments/comments" %> 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/hello.builder: -------------------------------------------------------------------------------- 1 | xml.html do 2 | xml.p "Hello #{@name}" 3 | xml << render(template: "test/greeting") 4 | end 5 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/layout_render_object.erb: -------------------------------------------------------------------------------- 1 | <%= render :layout => "layouts/customers" do |customer| %><%= customer.name %><% end %> -------------------------------------------------------------------------------- /activejob/test/adapters/resque.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | ActiveJob::Base.queue_adapter = :resque 4 | Resque.inline = true 5 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/jobs.yml: -------------------------------------------------------------------------------- 1 | unicyclist: 2 | id: 1 3 | ideal_reference_id: 2 4 | clown: 5 | id: 2 6 | magician: 7 | id: 3 8 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/member_types.yml: -------------------------------------------------------------------------------- 1 | founding: 2 | id: 1 3 | name: Founding 4 | provisional: 5 | id: 2 6 | name: Provisional 7 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/minivans.yml: -------------------------------------------------------------------------------- 1 | cool_first: 2 | minivan_id: m1 3 | name: my_minivan 4 | speedometer_id: s1 5 | color: blue 6 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/reserved_words/values.yml: -------------------------------------------------------------------------------- 1 | values1: 2 | as: 1 3 | group_id: 2 4 | 5 | values2: 6 | as: 2 7 | group_id: 1 8 | -------------------------------------------------------------------------------- /activerecord/test/models/recipe.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Recipe < ActiveRecord::Base 4 | belongs_to :chef 5 | end 6 | -------------------------------------------------------------------------------- /activestorage/test/dummy/app/jobs/application_job.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class ApplicationJob < ActiveJob::Base 4 | end 5 | -------------------------------------------------------------------------------- /activestorage/test/fixtures/files/cropped.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/activestorage/test/fixtures/files/cropped.pdf -------------------------------------------------------------------------------- /activestorage/test/fixtures/files/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/activestorage/test/fixtures/files/favicon.ico -------------------------------------------------------------------------------- /activestorage/test/fixtures/files/racecar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/activestorage/test/fixtures/files/racecar.jpg -------------------------------------------------------------------------------- /activestorage/test/fixtures/files/racecar.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/activestorage/test/fixtures/files/racecar.tif -------------------------------------------------------------------------------- /activesupport/lib/active_support/core_ext/digest.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "active_support/core_ext/digest/uuid" 4 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/cross_site_dependency.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class CrossSiteDependency 4 | end 5 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/load_path/loaded_constant.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module LoadedConstant 4 | end 5 | -------------------------------------------------------------------------------- /activesupport/test/dependencies/requires_nonexistent1.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require_dependency "requires_nonexistent0" 4 | -------------------------------------------------------------------------------- /guides/assets/images/rails_guides_logo_1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/rails_guides_logo_1x.png -------------------------------------------------------------------------------- /guides/assets/images/rails_guides_logo_2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/rails_guides_logo_2x.png -------------------------------------------------------------------------------- /actionmailbox/test/dummy/app/models/application_record.rb: -------------------------------------------------------------------------------- 1 | class ApplicationRecord < ActiveRecord::Base 2 | self.abstract_class = true 3 | end 4 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/config/webpack/environment.js: -------------------------------------------------------------------------------- 1 | const { environment } = require('@rails/webpacker') 2 | 3 | module.exports = environment 4 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/attachments/test.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/actionmailer/test/fixtures/attachments/test.jpg -------------------------------------------------------------------------------- /actionpack/lib/action_dispatch/middleware/templates/rescues/missing_template.text.erb: -------------------------------------------------------------------------------- 1 | Template is missing 2 | 3 | <%= @exception.message %> 4 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/helpers/just_me_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module JustMeHelper 4 | def me() "mine!" end 5 | end 6 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/helpers/me_too_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module MeTooHelper 4 | def me() "me too!" end 5 | end 6 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/multipart/bracketed_param: -------------------------------------------------------------------------------- 1 | --AaB03x 2 | Content-Disposition: form-data; name="foo[baz]" 3 | 4 | bar 5 | --AaB03x-- 6 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/multipart/single_parameter: -------------------------------------------------------------------------------- 1 | --AaB03x 2 | Content-Disposition: form-data; name="foo" 3 | 4 | bar 5 | --AaB03x-- 6 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/public/foo/さようなら.html.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/actionpack/test/fixtures/public/foo/さようなら.html.gz -------------------------------------------------------------------------------- /actionpack/test/fixtures/public/gzip/foo.zoo.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/actionpack/test/fixtures/public/gzip/foo.zoo.gz -------------------------------------------------------------------------------- /actiontext/test/dummy/app/models/application_record.rb: -------------------------------------------------------------------------------- 1 | class ApplicationRecord < ActiveRecord::Base 2 | self.abstract_class = true 3 | end 4 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/models/review.rb: -------------------------------------------------------------------------------- 1 | class Review < ApplicationRecord 2 | belongs_to :message 3 | 4 | has_rich_text :content 5 | end 6 | -------------------------------------------------------------------------------- /actiontext/test/dummy/config/webpack/environment.js: -------------------------------------------------------------------------------- 1 | const { environment } = require('@rails/webpacker') 2 | 3 | module.exports = environment 4 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layout_tests/layouts/symlinked/symlinked_layout.erb: -------------------------------------------------------------------------------- 1 | This is my layout 2 | 3 | <%= yield %> 4 | 5 | End. 6 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layouts/_column.html.erb: -------------------------------------------------------------------------------- 1 |
<%= yield :column %>
2 |
<%= yield %>
-------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/content_for_with_parameter.erb: -------------------------------------------------------------------------------- 1 | <% content_for :title, "Putting stuff in the title!" -%> 2 | Great stuff! -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/hello_world_container.builder: -------------------------------------------------------------------------------- 1 | xml.test do 2 | render partial: "hello", locals: { xm: xml } 3 | end 4 | -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/api/comments/_comments.json.erb: -------------------------------------------------------------------------------- 1 | <%= render partial: "comments/comment", collection: commentable.comments %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/good_customers/_good_customer.html.erb: -------------------------------------------------------------------------------- 1 | <%= greeting %> good customer: <%= good_customer.name %><%= good_customer_counter %> -------------------------------------------------------------------------------- /actionview/test/fixtures/mascot.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Mascot < ActiveRecord::Base 4 | belongs_to :company 5 | end 6 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/layout_render_file.erb: -------------------------------------------------------------------------------- 1 | <% content_for :title do %>title<% end -%> 2 | <%= render template: 'layouts/yield' -%> 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/nested_streaming.erb: -------------------------------------------------------------------------------- 1 | <%- content_for :header do -%>?<%- end -%> 2 | <%= render :template => "test/streaming" %> 3 | ? -------------------------------------------------------------------------------- /actionview/test/ujs/config.ru: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | $LOAD_PATH.unshift __dir__ 4 | require "server" 5 | 6 | run UJS::Server 7 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/mixed_case_monkeys.yml: -------------------------------------------------------------------------------- 1 | first: 2 | monkeyID: 1 3 | fleaCount: 42 4 | second: 5 | monkeyID: 2 6 | fleaCount: 43 7 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/movies.yml: -------------------------------------------------------------------------------- 1 | first: 2 | movieid: 1 3 | name: Terminator 4 | 5 | second: 6 | movieid: 2 7 | name: Gladiator 8 | -------------------------------------------------------------------------------- /activerecord/test/models/cart.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Cart < ActiveRecord::Base 4 | self.primary_key = :id 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/column.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Column < ActiveRecord::Base 4 | belongs_to :record 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/entrant.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Entrant < ActiveRecord::Base 4 | belongs_to :course 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/mentor.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Mentor < ActiveRecord::Base 4 | has_many :developers 5 | end 6 | -------------------------------------------------------------------------------- /activestorage/app/jobs/active_storage/base_job.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class ActiveStorage::BaseJob < ActiveJob::Base 4 | end 5 | -------------------------------------------------------------------------------- /activestorage/test/service/configurations.yml.enc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/activestorage/test/service/configurations.yml.enc -------------------------------------------------------------------------------- /guides/assets/images/association_basics/habtm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/association_basics/habtm.png -------------------------------------------------------------------------------- /guides/assets/images/i18n/demo_translated_en.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/i18n/demo_translated_en.png -------------------------------------------------------------------------------- /guides/assets/images/i18n/demo_untranslated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/i18n/demo_untranslated.png -------------------------------------------------------------------------------- /railties/lib/rails/generators/test_unit/plugin/templates/test_helper.rb: -------------------------------------------------------------------------------- 1 | require "active_support/testing/autorun" 2 | require "active_support" 3 | -------------------------------------------------------------------------------- /railties/test/fixtures/lib/template.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | say "It works from file!" 4 | say "With ARGV! #{ARGV.join(" ")}" 5 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/config/webpack/test.js: -------------------------------------------------------------------------------- 1 | const environment = require('./environment') 2 | 3 | module.exports = environment.toWebpackConfig() 4 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/i18n_test_mailer/mail_with_i18n_subject.erb: -------------------------------------------------------------------------------- 1 | Hello there, 2 | 3 | Mr. <%= @recipient %>. Be greeted, new member! 4 | 5 | -------------------------------------------------------------------------------- /actionpack/lib/action_dispatch/middleware/templates/rescues/missing_exact_template.text.erb: -------------------------------------------------------------------------------- 1 | Missing exact template 2 | 3 | <%= @exception.message %> 4 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/functional_caching/formatted_fragment_cached.html.erb: -------------------------------------------------------------------------------- 1 | 2 | <%= cache("fragment") do %>

ERB

<% end %> 3 | 4 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/bad_customers/_bad_customer.html.erb: -------------------------------------------------------------------------------- 1 | <%= greeting %> bad customer: <%= bad_customer.name %><%= bad_customer_counter %> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_content_tag_nested_in_content_tag.erb: -------------------------------------------------------------------------------- 1 | <%= content_tag 'p' do %> 2 | <%= content_tag 'b', 'Hello' %> 3 | <% end %> 4 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_first_layer.html.erb: -------------------------------------------------------------------------------- 1 | {"format":"HTML", "children": 2 | [ 3 | <%= render(partial: "first").chomp.html_safe %>, 4 | ]} 5 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_first_layer.xml.erb: -------------------------------------------------------------------------------- 1 | {"format":"XML", "children": 2 | [ 3 | <%= render(partial: "first").chomp.html_safe %> 4 | ]} 5 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_layout_with_partial_and_yield.html.erb: -------------------------------------------------------------------------------- 1 | Before 2 | <%= render :partial => "test/partial" %> 3 | <%= yield %> 4 | After 5 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_nested_cached_customer.erb: -------------------------------------------------------------------------------- 1 | <%= render partial: "test/cached_customer", locals: { cached_customer: cached_customer } %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_second_layer.html.erb: -------------------------------------------------------------------------------- 1 | {"format":"HTML", "children": 2 | [ 3 | <%= render(partial: "first").chomp.html_safe %> 4 | ]} 5 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_second_layer.xml.erb: -------------------------------------------------------------------------------- 1 | {"format":"XML", "children": 2 | [ 3 | <%= render(partial: "first").chomp.html_safe %> 4 | ]} 5 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/live_parrots.yml: -------------------------------------------------------------------------------- 1 | dusty: 2 | name: "Dusty Bluebird" 3 | treasures: [ruby, sapphire] 4 | parrot_sti_class: LiveParrot 5 | -------------------------------------------------------------------------------- /activerecord/test/models/member_type.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class MemberType < ActiveRecord::Base 4 | has_many :members 5 | end 6 | -------------------------------------------------------------------------------- /activestorage/test/dummy/Rakefile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require_relative "config/application" 4 | 5 | Rails.application.load_tasks 6 | -------------------------------------------------------------------------------- /activestorage/test/fixtures/files/rotated_video.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/activestorage/test/fixtures/files/rotated_video.mp4 -------------------------------------------------------------------------------- /activesupport/lib/active_support/core_ext/object/to_param.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "active_support/core_ext/object/to_query" 4 | -------------------------------------------------------------------------------- /activesupport/lib/active_support/core_ext/symbol.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "active_support/core_ext/symbol/starts_ends_with" 4 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/class_folder/inline_class.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class ClassFolder::InlineClass 4 | end 5 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/html/some_class.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module HTML 4 | class SomeClass 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/module_folder/inline_class.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class ModuleFolder::InlineClass 4 | end 5 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/prepend/sub_class_conflict.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Prepend::SubClassConflict 4 | end 5 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/raises_name_error.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class RaisesNameError 4 | FooBarBaz 5 | end 6 | -------------------------------------------------------------------------------- /guides/assets/images/association_basics/has_one.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/association_basics/has_one.png -------------------------------------------------------------------------------- /guides/assets/images/getting_started/challenge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/getting_started/challenge.png -------------------------------------------------------------------------------- /guides/assets/images/i18n/demo_localized_pirate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/i18n/demo_localized_pirate.png -------------------------------------------------------------------------------- /guides/assets/images/rails_guides_kindle_cover.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/rails_guides_kindle_cover.jpg -------------------------------------------------------------------------------- /guides/assets/images/security/session_fixation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/security/session_fixation.png -------------------------------------------------------------------------------- /railties/.gitignore: -------------------------------------------------------------------------------- 1 | /log/ 2 | /test/500.html 3 | /test/fixtures/tmp/ 4 | /test/initializer/root/log/ 5 | /test/isolation/assets/yarn.lock 6 | /tmp/ 7 | -------------------------------------------------------------------------------- /railties/lib/rails/generators/erb/controller/templates/view.html.erb.tt: -------------------------------------------------------------------------------- 1 |

<%= class_name %>#<%= @action %>

2 |

Find me in <%= @path %>

3 | -------------------------------------------------------------------------------- /railties/lib/rails/generators/rails/app/templates/app/assets/config/manifest.js.tt: -------------------------------------------------------------------------------- 1 | //= link_tree ../images 2 | //= link_directory ../stylesheets .css 3 | -------------------------------------------------------------------------------- /actionmailbox/lib/rails/generators/mailbox/templates/mailbox.rb.tt: -------------------------------------------------------------------------------- 1 | class <%= class_name %>Mailbox < ApplicationMailbox 2 | def process 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/config/webpack/production.js: -------------------------------------------------------------------------------- 1 | const environment = require('./environment') 2 | 3 | module.exports = environment.toWebpackConfig() 4 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/caching_mailer/multipart_cache.html.erb: -------------------------------------------------------------------------------- 1 | <% cache :html_caching, skip_digest: true do %> 2 | "Welcome html" 3 | <% end %> 4 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/caching_mailer/multipart_cache.text.erb: -------------------------------------------------------------------------------- 1 | <% cache :text_caching, skip_digest: true do %> 2 | "Welcome text" 3 | <% end %> 4 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/alternate_helpers/foo_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module FooHelper 4 | redefine_method(:baz) { } 5 | end 6 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/helpers_typo/admin/users_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module Admin 4 | module UsersHelpeR 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/multipart/ruby_on_rails.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/actionpack/test/fixtures/multipart/ruby_on_rails.jpg -------------------------------------------------------------------------------- /actiontext/test/dummy/app/channels/application_cable/channel.rb: -------------------------------------------------------------------------------- 1 | module ApplicationCable 2 | class Channel < ActionCable::Channel::Base 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/good_customers/_good_customer.html.erb: -------------------------------------------------------------------------------- 1 | <%= greeting %> good customer: <%= good_customer.name %><%= good_customer_counter %> -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/hello.builder: -------------------------------------------------------------------------------- 1 | xml.html do 2 | xml.p "Hello #{@name}" 3 | xml << render(template: "test/greeting") 4 | end 5 | -------------------------------------------------------------------------------- /actionview/test/fixtures/layouts/streaming.erb: -------------------------------------------------------------------------------- 1 | <%= yield :header -%> 2 | <%= yield -%> 3 | <%= yield :footer -%> 4 | <%= yield(:unknown).presence || "." -%> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/streaming.erb: -------------------------------------------------------------------------------- 1 | <%- provide :header do -%>Yes, <%- end -%> 2 | this works 3 | <%- content_for :footer, " like a charm" -%> 4 | -------------------------------------------------------------------------------- /actionview/test/fixtures/translations/templates/partial_lazy_translation_block.html.erb: -------------------------------------------------------------------------------- 1 | <%= render("translations/templates/partial") do %> 2 | <% end %> 3 | -------------------------------------------------------------------------------- /activejob/test/adapters/sidekiq.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "sidekiq/testing/inline" 4 | ActiveJob::Base.queue_adapter = :sidekiq 5 | -------------------------------------------------------------------------------- /activejob/test/adapters/sneakers.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "support/sneakers/inline" 4 | ActiveJob::Base.queue_adapter = :sneakers 5 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/citations.yml: -------------------------------------------------------------------------------- 1 | <% 65536.times do |i| %> 2 | fixture_no_<%= i %>: 3 | id: <%= i %> 4 | book2_id: <%= i*i %> 5 | <% end %> 6 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/edges.yml: -------------------------------------------------------------------------------- 1 | <% (1..4).each do |id| %> 2 | edge_<%= id %>: 3 | source_id: <%= id %> 4 | sink_id: <%= id + 1 %> 5 | <% end %> 6 | -------------------------------------------------------------------------------- /activerecord/test/models/admin.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module Admin 4 | def self.table_name_prefix 5 | "admin_" 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /activerecord/test/models/admin/account.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Admin::Account < ActiveRecord::Base 4 | has_many :users 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/event.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Event < ActiveRecord::Base 4 | validates_uniqueness_of :title 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/message.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Message < ActiveRecord::Base 4 | has_one :entry, as: :entryable 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/tree.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Tree < ActiveRecord::Base 4 | has_many :nodes, dependent: :destroy 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/uuid_child.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class UuidChild < ActiveRecord::Base 4 | belongs_to :uuid_parent 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/uuid_parent.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class UuidParent < ActiveRecord::Base 4 | has_many :uuid_children 5 | end 6 | -------------------------------------------------------------------------------- /activestorage/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { "modules": false } ] 4 | ], 5 | "plugins": [ 6 | "external-helpers" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /activestorage/test/fixtures/files/racecar_rotated.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/activestorage/test/fixtures/files/racecar_rotated.jpg -------------------------------------------------------------------------------- /activesupport/lib/active_support/core_ext/big_decimal.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "active_support/core_ext/big_decimal/conversions" 4 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/module_folder/nested_sibling.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class ModuleFolder::NestedSibling 4 | end 5 | -------------------------------------------------------------------------------- /activesupport/test/dependencies/check_warnings.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | $check_warnings_load_count += 1 4 | $checked_verbose = $VERBOSE 5 | -------------------------------------------------------------------------------- /activesupport/test/dependencies/cross_site_depender.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class CrossSiteDepender 4 | CrossSiteDependency 5 | end 6 | -------------------------------------------------------------------------------- /guides/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/guides/CHANGELOG.md) for previous changes. 5 | -------------------------------------------------------------------------------- /guides/assets/images/association_basics/belongs_to.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/association_basics/belongs_to.png -------------------------------------------------------------------------------- /guides/assets/images/association_basics/has_many.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/association_basics/has_many.png -------------------------------------------------------------------------------- /guides/assets/images/getting_started/rails_welcome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/getting_started/rails_welcome.png -------------------------------------------------------------------------------- /guides/assets/images/i18n/demo_translated_pirate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/i18n/demo_translated_pirate.png -------------------------------------------------------------------------------- /guides/assets/images/i18n/demo_translation_missing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/i18n/demo_translation_missing.png -------------------------------------------------------------------------------- /railties/lib/rails/generators/erb/mailer/templates/view.text.erb.tt: -------------------------------------------------------------------------------- 1 | <%= class_name %>#<%= @action %> 2 | 3 | <%%= @greeting %>, find me in <%= @path %> 4 | -------------------------------------------------------------------------------- /railties/lib/rails/generators/rails/helper/templates/helper.rb.tt: -------------------------------------------------------------------------------- 1 | <% module_namespacing do -%> 2 | module <%= class_name %>Helper 3 | end 4 | <% end -%> 5 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/app/channels/application_cable/channel.rb: -------------------------------------------------------------------------------- 1 | module ApplicationCable 2 | class Channel < ActionCable::Channel::Base 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/config/webpack/development.js: -------------------------------------------------------------------------------- 1 | const environment = require('./environment') 2 | 3 | module.exports = environment.toWebpackConfig() 4 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/caching_mailer/skip_fragment_cache_digesting.html.erb: -------------------------------------------------------------------------------- 1 | <%= cache :no_digest, skip_digest: true do %> 2 | No Digest 3 | <% end %> 4 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/functional_caching/fragment_cached.html.erb: -------------------------------------------------------------------------------- 1 | Hello 2 | <%= cache "fragment" do %>This bit's fragment cached<% end %> 3 | <%= 'Ciao' %> 4 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_label_with_block.erb: -------------------------------------------------------------------------------- 1 | <%= label('post', 'message')do %> 2 | Message 3 | <%= text_field 'post', 'message' %> 4 | <% end %> 5 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/list.erb: -------------------------------------------------------------------------------- 1 | <%= @test_unchanged = 'goodbye' %><%= render :partial => 'customer', :collection => @customers %><%= @test_unchanged %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/topic.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Topic < ActiveRecord::Base 4 | has_many :replies, dependent: :destroy 5 | end 6 | -------------------------------------------------------------------------------- /actionview/test/fixtures/translations/templates/found_yield_single_argument.html.erb: -------------------------------------------------------------------------------- 1 | <%= t('.foo') do |translation| %> 2 | <%= translation %> 3 | <% end %> 4 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/dashboards.yml: -------------------------------------------------------------------------------- 1 | cool_first: 2 | dashboard_id: d1 3 | name: my_dashboard 4 | second: 5 | dashboard_id: d2 6 | name: second 7 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/dog_lovers.yml: -------------------------------------------------------------------------------- 1 | david: 2 | id: 1 3 | bred_dogs_count: 0 4 | trained_dogs_count: 1 5 | joanna: 6 | id: 2 7 | dogs_count: 1 8 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/ships.yml: -------------------------------------------------------------------------------- 1 | black_pearl: 2 | name: "Black Pearl" 3 | pirate: blackbeard 4 | interceptor: 5 | id: 2 6 | name: "Interceptor" 7 | -------------------------------------------------------------------------------- /activerecord/test/models/boolean.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Boolean < ActiveRecord::Base 4 | def has_fun 5 | super 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /activerecord/test/models/country.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Country < ActiveRecord::Base 4 | has_and_belongs_to_many :treaties 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/keyboard.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Keyboard < ActiveRecord::Base 4 | self.primary_key = "key_number" 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/line_item.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class LineItem < ActiveRecord::Base 4 | belongs_to :invoice, touch: true 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/mixed_case_monkey.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class MixedCaseMonkey < ActiveRecord::Base 4 | belongs_to :human 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/possession.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Possession < ActiveRecord::Base 4 | self.table_name = "having" 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/task.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Task < ActiveRecord::Base 4 | def updated_at 5 | ending 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /activerecord/test/models/treaty.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Treaty < ActiveRecord::Base 4 | has_and_belongs_to_many :countries 5 | end 6 | -------------------------------------------------------------------------------- /activestorage/test/fixtures/active_storage/attachments.yml: -------------------------------------------------------------------------------- 1 | first_avatar_attachment: 2 | name: avatar 3 | record: first (User) 4 | blob: first_avatar_blob 5 | -------------------------------------------------------------------------------- /activesupport/lib/active_support/testing/autorun.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | gem "minitest" 4 | 5 | require "minitest" 6 | 7 | Minitest.autorun 8 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/class_folder.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class ClassFolder 4 | ConstantInClassFolder = "indeed" 5 | end 6 | -------------------------------------------------------------------------------- /guides/assets/images/association_basics/polymorphic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/association_basics/polymorphic.png -------------------------------------------------------------------------------- /railties/test/fixtures/lib/generators/fixjour_generator.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class FixjourGenerator < Rails::Generators::NamedBase 4 | end 5 | -------------------------------------------------------------------------------- /actioncable/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { "modules": false, "loose": true } ] 4 | ], 5 | "plugins": [ 6 | "external-helpers" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /actionmailbox/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/actionmailbox/CHANGELOG.md) for previous changes. 5 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/app/assets/config/manifest.js: -------------------------------------------------------------------------------- 1 | //= link_tree ../images 2 | //= link_directory ../javascripts .js 3 | //= link_directory ../stylesheets .css 4 | -------------------------------------------------------------------------------- /actionmailer/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/actionmailer/CHANGELOG.md) for previous changes. 5 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/functional_caching/formatted_fragment_cached.xml.builder: -------------------------------------------------------------------------------- 1 | xml.body do 2 | cache("fragment") do 3 | xml.p "Builder" 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/assets/config/manifest.js: -------------------------------------------------------------------------------- 1 | //= link_tree ../images 2 | //= link_directory ../javascripts .js 3 | //= link_directory ../stylesheets .css 4 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/channels/application_cable/connection.rb: -------------------------------------------------------------------------------- 1 | module ApplicationCable 2 | class Connection < ActionCable::Connection::Base 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layouts/streaming.erb: -------------------------------------------------------------------------------- 1 | <%= yield :header -%> 2 | <%= yield -%> 3 | <%= yield :footer -%> 4 | <%= yield(:unknown).presence || "." -%> -------------------------------------------------------------------------------- /actionview/test/fixtures/projects.yml: -------------------------------------------------------------------------------- 1 | action_controller: 2 | id: 2 3 | name: Active Controller 4 | 5 | active_record: 6 | id: 1 7 | name: Active Record 8 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/render_partial_inside_directory.html.erb: -------------------------------------------------------------------------------- 1 | <%= render partial: 'test/_directory/partial_with_locales', locals: {'name' => 'Jane'} %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/translations/templates/found_yield_block.html.erb: -------------------------------------------------------------------------------- 1 | <%= t('.foo') do |translation, key| %> 2 | <%= key %>: <%= translation %> 3 | <% end %> 4 | -------------------------------------------------------------------------------- /actionview/test/fixtures/translations/templates/missing_yield_single_argument_block.erb: -------------------------------------------------------------------------------- 1 | <%= t('.missing') do |translation| %> 2 | <%= translation %> 3 | <% end %> 4 | -------------------------------------------------------------------------------- /activejob/test/adapters/async.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | ActiveJob::Base.queue_adapter = :async 4 | ActiveJob::Base.queue_adapter.immediate = true 5 | -------------------------------------------------------------------------------- /activejob/test/jobs/queue_adapter_job.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class QueueAdapterJob < ActiveJob::Base 4 | self.queue_adapter = :inline 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/courses.yml: -------------------------------------------------------------------------------- 1 | ruby: 2 | id: 1 3 | name: Ruby Development 4 | college: FIU 5 | 6 | java: 7 | id: 2 8 | name: Java Development 9 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/projects.yml: -------------------------------------------------------------------------------- 1 | action_controller: 2 | id: 2 3 | name: Active Controller 4 | 5 | active_record: 6 | id: 1 7 | name: Active Record 8 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/string_key_objects.yml: -------------------------------------------------------------------------------- 1 | first: 2 | id: record1 3 | name: first record 4 | 5 | second: 6 | id: record2 7 | name: second record 8 | -------------------------------------------------------------------------------- /activerecord/test/models/arunit2_model.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class ARUnit2Model < ActiveRecord::Base 4 | self.abstract_class = true 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/column_name.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class ColumnName < ActiveRecord::Base 4 | self.table_name = "colnametests" 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/dashboard.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Dashboard < ActiveRecord::Base 4 | self.primary_key = :dashboard_id 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/legacy_thing.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class LegacyThing < ActiveRecord::Base 4 | self.locking_column = :version 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/notification.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Notification < ActiveRecord::Base 4 | validates_presence_of :message 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/string_key_object.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class StringKeyObject < ActiveRecord::Base 4 | self.primary_key = :id 5 | end 6 | -------------------------------------------------------------------------------- /activesupport/lib/active_support/json.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "active_support/json/decoding" 4 | require "active_support/json/encoding" 5 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/module_with_custom_const_missing/a/b.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | ModuleWithCustomConstMissing::A::B = "10" 4 | -------------------------------------------------------------------------------- /guides/assets/images/4_0_release_notes/rails4_features.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/4_0_release_notes/rails4_features.png -------------------------------------------------------------------------------- /guides/assets/images/association_basics/has_one_through.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/association_basics/has_one_through.png -------------------------------------------------------------------------------- /railties/lib/rails/generators/rails/app/templates/ruby-version.tt: -------------------------------------------------------------------------------- 1 | <%= ENV["RBENV_VERSION"] || ENV["rvm_ruby_string"] || "#{RUBY_ENGINE}-#{RUBY_ENGINE_VERSION}" %> 2 | -------------------------------------------------------------------------------- /railties/lib/rails/rack.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module Rails 4 | module Rack 5 | autoload :Logger, "rails/rack/logger" 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/app/channels/application_cable/connection.rb: -------------------------------------------------------------------------------- 1 | module ApplicationCable 2 | class Connection < ActionCable::Connection::Base 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/bin/bundle: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) 3 | load Gem.bin_path('bundler', 'bundle') 4 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/caching_mailer/fragment_caching_options.html.erb: -------------------------------------------------------------------------------- 1 | <%= cache :no_digest, skip_digest: true, expires_in: 0 do %> 2 | No Digest 3 | <% end %> 4 | -------------------------------------------------------------------------------- /actionpack/lib/abstract_controller/error.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module AbstractController 4 | class Error < StandardError #:nodoc: 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/functional_caching/formatted_fragment_cached_with_variant.html+phone.erb: -------------------------------------------------------------------------------- 1 | 2 | <%= cache("fragment") do %>

PHONE

<% end %> 3 | 4 | -------------------------------------------------------------------------------- /actiontext/.gitignore: -------------------------------------------------------------------------------- 1 | /test/dummy/db/*.sqlite3 2 | /test/dummy/db/*.sqlite3-* 3 | /test/dummy/log/*.log 4 | /test/dummy/public/packs-test 5 | /test/dummy/tmp/ 6 | /tmp/ 7 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/mailers/application_mailer.rb: -------------------------------------------------------------------------------- 1 | class ApplicationMailer < ActionMailer::Base 2 | default from: 'from@example.com' 3 | layout 'mailer' 4 | end 5 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/views/messages/new.html.erb: -------------------------------------------------------------------------------- 1 |

New Message

2 | 3 | <%= render 'form', message: @message %> 4 | 5 | <%= link_to 'Back', messages_path %> 6 | -------------------------------------------------------------------------------- /actiontext/test/dummy/config/spring.rb: -------------------------------------------------------------------------------- 1 | %w[ 2 | .ruby-version 3 | .rbenv-vars 4 | tmp/restart.txt 5 | tmp/caching-dev.txt 6 | ].each { |path| Spring.watch(path) } 7 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/content_for_concatenated.erb: -------------------------------------------------------------------------------- 1 | <% content_for :title, "Putting stuff " 2 | content_for :title, "in the title!" -%> 3 | Great stuff! -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/list.erb: -------------------------------------------------------------------------------- 1 | <%= @test_unchanged = 'goodbye' %><%= render :partial => 'customer', :collection => @customers %><%= @test_unchanged %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/non_erb_block_content_for.builder: -------------------------------------------------------------------------------- 1 | content_for :title do 2 | "Putting stuff in the title!" 3 | end 4 | xml << "Great stuff!" 5 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/cache_fragment_inside_render_layout_block_1.html.erb: -------------------------------------------------------------------------------- 1 | <%= render layout: "layouts/yield_only" do %><%= cache "foo" do %>CAT<% end %><% end %> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/cache_fragment_inside_render_layout_block_2.html.erb: -------------------------------------------------------------------------------- 1 | <%= render layout: "layouts/yield_only" do %><%= cache "foo" do %>DOG<% end %><% end %> -------------------------------------------------------------------------------- /actionview/test/fixtures/translations/templates/missing_yield_block.erb: -------------------------------------------------------------------------------- 1 | <%= t('.missing') do |translation, key| %> 2 | <%= key %>: <%= translation %> 3 | <% end %> 4 | -------------------------------------------------------------------------------- /activejob/test/adapters/backburner.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "support/backburner/inline" 4 | 5 | ActiveJob::Base.queue_adapter = :backburner 6 | -------------------------------------------------------------------------------- /activejob/test/adapters/que.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "support/que/inline" 4 | 5 | ActiveJob::Base.queue_adapter = :que 6 | Que.mode = :sync 7 | -------------------------------------------------------------------------------- /activejob/test/adapters/queue_classic.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "support/queue_classic/inline" 4 | ActiveJob::Base.queue_adapter = :queue_classic 5 | -------------------------------------------------------------------------------- /activejob/test/adapters/sucker_punch.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "sucker_punch/testing/inline" 4 | ActiveJob::Base.queue_adapter = :sucker_punch 5 | -------------------------------------------------------------------------------- /activerecord/test/models/cake_designer.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class CakeDesigner < ActiveRecord::Base 4 | has_one :chef, as: :employable 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/department.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Department < ActiveRecord::Base 4 | has_many :chefs 5 | belongs_to :hotel 6 | end 7 | -------------------------------------------------------------------------------- /activerecord/test/models/uuid_comment.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class UuidComment < ActiveRecord::Base 4 | has_one :uuid_entry, as: :entryable 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/uuid_message.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class UuidMessage < ActiveRecord::Base 4 | has_one :uuid_entry, as: :entryable 5 | end 6 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/circular1.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | silence_warnings do 4 | Circular2 5 | end 6 | 7 | class Circular1 8 | end 9 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/requires_constant.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "loaded_constant" 4 | 5 | module RequiresConstant 6 | end 7 | -------------------------------------------------------------------------------- /guides/assets/images/association_basics/has_many_through.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/association_basics/has_many_through.png -------------------------------------------------------------------------------- /railties/bin/test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # frozen_string_literal: true 3 | 4 | COMPONENT_ROOT = File.expand_path("..", __dir__) 5 | require_relative "../../tools/test" 6 | -------------------------------------------------------------------------------- /railties/lib/rails/generators/rails/app/templates/app/models/application_record.rb.tt: -------------------------------------------------------------------------------- 1 | class ApplicationRecord < ActiveRecord::Base 2 | primary_abstract_class 3 | end 4 | -------------------------------------------------------------------------------- /railties/lib/rails/generators/rails/app/templates/public/robots.txt: -------------------------------------------------------------------------------- 1 | # See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file 2 | -------------------------------------------------------------------------------- /actioncable/bin/test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # frozen_string_literal: true 3 | 4 | COMPONENT_ROOT = File.expand_path("..", __dir__) 5 | require_relative "../../tools/test" 6 | -------------------------------------------------------------------------------- /actioncable/lib/rails/generators/channel/templates/application_cable/channel.rb.tt: -------------------------------------------------------------------------------- 1 | module ApplicationCable 2 | class Channel < ActionCable::Channel::Base 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /actionmailbox/bin/test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # frozen_string_literal: true 3 | 4 | COMPONENT_ROOT = File.expand_path("..", __dir__) 5 | require_relative "../../tools/test" 6 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/app/mailers/application_mailer.rb: -------------------------------------------------------------------------------- 1 | class ApplicationMailer < ActionMailer::Base 2 | default from: 'from@example.com' 3 | layout 'mailer' 4 | end 5 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/config/spring.rb: -------------------------------------------------------------------------------- 1 | %w[ 2 | .ruby-version 3 | .rbenv-vars 4 | tmp/restart.txt 5 | tmp/caching-dev.txt 6 | ].each { |path| Spring.watch(path) } 7 | -------------------------------------------------------------------------------- /actionmailer/bin/test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # frozen_string_literal: true 3 | 4 | COMPONENT_ROOT = File.expand_path("..", __dir__) 5 | require_relative "../../tools/test" 6 | -------------------------------------------------------------------------------- /actionpack/bin/test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # frozen_string_literal: true 3 | 4 | COMPONENT_ROOT = File.expand_path("..", __dir__) 5 | require_relative "../../tools/test" 6 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/functional_caching/fragment_cached_without_digest.html.erb: -------------------------------------------------------------------------------- 1 | 2 | <%= cache 'nodigest', skip_digest: true do %>

ERB

<% end %> 3 | 4 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/functional_caching/inline_fragment_cached.html.erb: -------------------------------------------------------------------------------- 1 | <%= render :inline => 'Some inline content' %> 2 | <%= cache do %>Some cached content<% end %> 3 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/helpers/fun/pdf_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module Fun 4 | module PdfHelper 5 | def foobar() "baz" end 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /actiontext/bin/test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # frozen_string_literal: true 3 | 4 | COMPONENT_ROOT = File.expand_path("..", __dir__) 5 | require_relative "../../tools/test" 6 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/views/people/_trix_content_attachment.html.erb: -------------------------------------------------------------------------------- 1 | 2 | <%= person.name %> 3 | 4 | -------------------------------------------------------------------------------- /actiontext/test/dummy/bin/bundle: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __dir__) 3 | load Gem.bin_path('bundler', 'bundle') 4 | -------------------------------------------------------------------------------- /actionview/bin/test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # frozen_string_literal: true 3 | 4 | COMPONENT_ROOT = File.expand_path("..", __dir__) 5 | require_relative "../../tools/test" 6 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/render_partial_inside_directory.html.erb: -------------------------------------------------------------------------------- 1 | <%= render partial: 'test/_directory/partial_with_locales', locals: {'name' => 'Jane'} %> 2 | -------------------------------------------------------------------------------- /activejob/bin/test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # frozen_string_literal: true 3 | 4 | COMPONENT_ROOT = File.expand_path("..", __dir__) 5 | require_relative "../../tools/test" 6 | -------------------------------------------------------------------------------- /activemodel/bin/test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # frozen_string_literal: true 3 | 4 | COMPONENT_ROOT = File.expand_path("..", __dir__) 5 | require_relative "../../tools/test" 6 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/cars.yml: -------------------------------------------------------------------------------- 1 | honda: 2 | id: 1 3 | name: honda 4 | engines_count: 0 5 | 6 | zyke: 7 | id: 2 8 | name: zyke 9 | engines_count: 0 10 | -------------------------------------------------------------------------------- /activerecord/test/models/computer.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Computer < ActiveRecord::Base 4 | belongs_to :developer, foreign_key: "developer" 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/dl_keyed_has_many.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class DlKeyedHasMany < ActiveRecord::Base 4 | self.primary_key = "many_key" 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/dl_keyed_has_one.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class DlKeyedHasOne < ActiveRecord::Base 4 | self.primary_key = "has_one_key" 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/frog.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Frog < ActiveRecord::Base 4 | after_save do 5 | with_lock do 6 | end 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /activestorage/.gitignore: -------------------------------------------------------------------------------- 1 | /src/ 2 | /test/dummy/db/*.sqlite3 3 | /test/dummy/db/*.sqlite3-* 4 | /test/dummy/log/*.log 5 | /test/dummy/tmp/ 6 | /test/service/configurations.yml 7 | -------------------------------------------------------------------------------- /activestorage/bin/test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # frozen_string_literal: true 3 | 4 | COMPONENT_ROOT = File.expand_path("..", __dir__) 5 | require_relative "../../tools/test" 6 | -------------------------------------------------------------------------------- /activestorage/test/dummy/bin/rake: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # frozen_string_literal: true 3 | 4 | require_relative "../config/boot" 5 | require "rake" 6 | Rake.application.run 7 | -------------------------------------------------------------------------------- /activestorage/test/fixtures/files/video_without_video_stream.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/activestorage/test/fixtures/files/video_without_video_stream.mp4 -------------------------------------------------------------------------------- /activesupport/bin/test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # frozen_string_literal: true 3 | 4 | COMPONENT_ROOT = File.expand_path("..", __dir__) 5 | require_relative "../../tools/test" 6 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/module_folder/nested_class.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module ModuleFolder 4 | class NestedClass 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /activesupport/test/dependencies/service_one.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | $loaded_service_one ||= 0 4 | $loaded_service_one += 1 5 | 6 | class ServiceOne 7 | end 8 | -------------------------------------------------------------------------------- /guides/assets/images/active_record_querying/bookstore_models.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/active_record_querying/bookstore_models.png -------------------------------------------------------------------------------- /guides/assets/images/getting_started/article_with_comments.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rob-race/rails/main/guides/assets/images/getting_started/article_with_comments.png -------------------------------------------------------------------------------- /railties/lib/rails/generators/rails/plugin/templates/bin/test.tt: -------------------------------------------------------------------------------- 1 | $: << File.expand_path("../test", __dir__) 2 | 3 | require "bundler/setup" 4 | require "rails/plugin/test" 5 | -------------------------------------------------------------------------------- /actionmailbox/lib/rails/generators/mailbox/templates/application_mailbox.rb.tt: -------------------------------------------------------------------------------- 1 | class ApplicationMailbox < ActionMailbox::Base 2 | # routing /something/i => :somewhere 3 | end 4 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/helpers1_pack/pack1_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module Pack1Helper 4 | def conflicting_helper 5 | "pack1" 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/helpers2_pack/pack2_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module Pack2Helper 4 | def conflicting_helper 5 | "pack2" 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /actiontext/test/dummy/config.ru: -------------------------------------------------------------------------------- 1 | # This file is used by Rack-based servers to start the application. 2 | 3 | require_relative "config/environment" 4 | 5 | run Rails.application 6 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/using_layout_around_block.html.erb: -------------------------------------------------------------------------------- 1 | <%= render(:layout => "layout_for_partial", :locals => { :name => "David" }) do %>Inside from block<% end %> -------------------------------------------------------------------------------- /actionview/test/fixtures/helpers/helpery_test_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module HelperyTestHelper 4 | def helpery_test 5 | "Default" 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_cached_set.erb: -------------------------------------------------------------------------------- 1 | <%= cached_set.first %> | <%= cached_set.second %> | <%= cached_set.third %> | <%= cached_set.fourth %> | <%= cached_set.fifth %> 2 | -------------------------------------------------------------------------------- /actionview/test/lib/test_renderable.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class TestRenderable 4 | def render_in(_view_context) 5 | "Hello, World!" 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/dead_parrots.yml: -------------------------------------------------------------------------------- 1 | deadbird: 2 | name: "Dusty DeadBird" 3 | treasures: [ruby, sapphire] 4 | parrot_sti_class: DeadParrot 5 | killer: blackbeard 6 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/tags.yml: -------------------------------------------------------------------------------- 1 | general: 2 | id: 1 3 | name: General 4 | 5 | misc: 6 | id: 2 7 | name: Misc 8 | 9 | blue: 10 | id: 3 11 | name: Blue 12 | -------------------------------------------------------------------------------- /activerecord/test/models/entry.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Entry < ActiveRecord::Base 4 | delegated_type :entryable, types: %w[ Message Comment ] 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/room.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Room < ActiveRecord::Base 4 | belongs_to :user 5 | belongs_to :owner, class_name: "User" 6 | end 7 | -------------------------------------------------------------------------------- /activerecord/test/models/without_table.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class WithoutTable < ActiveRecord::Base 4 | default_scope -> { where(published: true) } 5 | end 6 | -------------------------------------------------------------------------------- /activesupport/lib/active_support/all.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "active_support" 4 | require "active_support/time" 5 | require "active_support/core_ext" 6 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/multiple_constant_file.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | MultipleConstantFile = 10 4 | SiblingConstant = MultipleConstantFile * 2 5 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/raises_no_method_error.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class RaisesNoMethodError 4 | self.foobar_method_doesnt_exist 5 | end 6 | -------------------------------------------------------------------------------- /railties/lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/railtie.rb.tt: -------------------------------------------------------------------------------- 1 | <%= wrap_in_modules <<~rb 2 | class Railtie < ::Rails::Railtie 3 | end 4 | rb 5 | %> 6 | -------------------------------------------------------------------------------- /railties/lib/rails/generators/rails/plugin/templates/rails/routes.rb.tt: -------------------------------------------------------------------------------- 1 | Rails.application.routes.draw do 2 | mount <%= camelized_modules %>::Engine => "/<%= name %>" 3 | end 4 | -------------------------------------------------------------------------------- /actioncable/lib/rails/generators/channel/templates/application_cable/connection.rb.tt: -------------------------------------------------------------------------------- 1 | module ApplicationCable 2 | class Connection < ActionCable::Connection::Base 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/config.ru: -------------------------------------------------------------------------------- 1 | # This file is used by Rack-based servers to start the application. 2 | 3 | require_relative "config/environment" 4 | 5 | run Rails.application 6 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/inline_attachment.html.erb: -------------------------------------------------------------------------------- 1 |

Inline Image

2 | 3 | <%= image_tag attachments['logo.png'].url %> 4 | 5 |

This is an image that is inline

-------------------------------------------------------------------------------- /actionpack/test/fixtures/customers/_customer.html.erb: -------------------------------------------------------------------------------- 1 | <% cache customer do %> 2 | <% controller.partial_rendered_times += 1 %> 3 | <%= customer.name %>, <%= customer.id %> 4 | <% end %> --------------------------------------------------------------------------------