1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview
Ufuk Kayserilioglu 44c07fd0be Add test for Hash-like object being passed to partial locals
The test passes an instance of `ActionController::Parameters` that acts
like a Hash but does not respond to some Hash methods like
`symbolize_keys`.

Moreover, if someone were to call `to_h` on the value it would fail since
the parameter is not permitted. So this is a great way to ensure that the
partial rendering pipeline does not mess with `locals`.
2019-01-24 22:41:19 +02:00
..
app/assets/javascripts Minimize boilerplate setup code for JavaScript libraries 2019-01-16 16:15:43 -05:00
bin
lib Revert "Allow usage of strings as locals for partial renderer" 2019-01-24 22:15:46 +02:00
test Add test for Hash-like object being passed to partial locals 2019-01-24 22:41:19 +02:00
.gitignore Clean up and consolidate .gitignores 2018-02-17 14:26:19 -08:00
actionview.gemspec Revert "Revert "Merge pull request #34387 from yhirano55/rails_info_properties_json"" 2019-01-08 22:19:22 +01:00
blade.yml
CHANGELOG.md Single new line is not rendered as new line in the CHANGELOG.md 2019-01-19 18:18:05 +09:00
coffeelint.json
MIT-LICENSE Bump license years for 2019 2018-12-31 10:24:38 +07:00
package.json Preparing for 6.0.0.beta1 release 2019-01-18 15:42:12 -05:00
Rakefile Enable Start/EndWith and RegexpMatch cops 2018-07-28 17:37:17 -04:00
README.rdoc
RUNNING_UJS_TESTS.rdoc
RUNNING_UNIT_TESTS.rdoc

= Action View

Action View is a framework for handling view template lookup and rendering, and provides
view helpers that assist when building HTML forms, Atom feeds and more.
Template formats that Action View handles are ERB (embedded Ruby, typically
used to inline short Ruby snippets inside HTML), and XML Builder.

== Download and installation

The latest version of Action View can be installed with RubyGems:

  $ gem install actionview

Source code can be downloaded as part of the Rails project on GitHub:

* https://github.com/rails/rails/tree/master/actionview


== License

Action View is released under the MIT license:

* https://opensource.org/licenses/MIT


== Support

API documentation is at

* http://api.rubyonrails.org

Bug reports for the Ruby on Rails project can be filed here:

* https://github.com/rails/rails/issues

Feature requests should be discussed on the rails-core mailing list here:

* https://groups.google.com/forum/?fromgroups#!forum/rubyonrails-core