rails--rails/actionview/lib/action_view
Peter Schilling f9960f2d74 Change render to support any hash keys in locals
this lets you pass ruby keywords to templates:

    <%= render 'example', class: "cool" %>

    <%= render 'example', "spaces are" => "a-ok" %>

    <%= render 'example', Foo: "bar" %>

Previously you'd see confusing syntax errors like this:

    SyntaxError (.../_example.html.erb:1: syntax error, unexpected '='

Now you can reference invalid identifiers through local_assigns.

If you try to use an invalid keyword (e.g. class) in your template, you
get a syntax error on the line where you use it.
2016-10-02 00:21:17 -07:00
..
helpers [ci skip] Replace to closing tag 2016-09-20 22:57:56 +03:00
locale
renderer Fix broken comments indentation caused by rubocop auto-correct [ci skip] 2016-09-14 18:26:32 +09:00
tasks modernizes hash syntax in actionview 2016-08-06 19:36:34 +02:00
template Merge pull request #26507 from Neodelf/actionview_duplicate 2016-09-16 15:07:05 -03:00
testing Add three new rubocop rules 2016-08-16 04:30:11 -03:00
base.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
buffers.rb applies new string literal convention in actionview/lib 2016-08-06 18:48:35 +02:00
context.rb
dependency_tracker.rb Add `Style/EmptyLines` in `.rubocop.yml` and remove extra empty lines 2016-08-07 17:50:59 +09:00
digestor.rb applies new string literal convention in actionview/lib 2016-08-06 18:48:35 +02:00
flows.rb applies remaining conventions across the project 2016-08-06 20:20:22 +02:00
gem_version.rb Start Rails 5.1 development 🎉 2016-05-10 03:46:56 -03:00
helpers.rb applies new string literal convention in actionview/lib 2016-08-06 18:48:35 +02:00
layouts.rb Fix broken comments indentation caused by rubocop auto-correct [ci skip] 2016-09-14 18:26:32 +09:00
log_subscriber.rb Modify LogSubscriber for single partial's cache message. 2016-08-08 00:24:39 +08:00
lookup_context.rb code gardening: removes redundant selfs 2016-08-08 01:12:38 +02:00
model_naming.rb nodoc ActionView::ModelNaming module 2015-01-18 11:57:36 +05:30
path_set.rb normalizes indentation and whitespace across the project 2016-08-06 20:16:27 +02:00
railtie.rb Replace middleware with executor callback. 2016-05-16 21:34:16 +02:00
record_identifier.rb applies new string literal convention in actionview/lib 2016-08-06 18:48:35 +02:00
rendering.rb Remove ActionView dependence on ActionPack's Mime implementation 2016-01-17 12:20:52 -05:00
routing_url_for.rb applies remaining conventions across the project 2016-08-06 20:20:22 +02:00
template.rb Change render to support any hash keys in locals 2016-10-02 00:21:17 -07:00
test_case.rb Add load hooks to all tests classes 2016-08-25 04:22:48 -03:00
version.rb applies new string literal convention in actionview/lib 2016-08-06 18:48:35 +02:00
view_paths.rb Fix broken comments indentation caused by rubocop auto-correct [ci skip] 2016-09-14 18:26:32 +09:00