- 11 9月, 2012 1 次提交
-
-
由 Guillermo Iguaran 提交于
This handler simply allows arbitrary Ruby code as a template
-
- 09 9月, 2012 1 次提交
-
-
由 Kalys Osmonov 提交于
-
- 08 9月, 2012 1 次提交
-
-
由 Guirec Corbel 提交于
The separation option enable to keep entire words, lines or anything. To split by line, like github, we can set the separation option as \n. To split by word, like google, we can set the separation option as " ". The radius option represent the number of lines or words we want to have in the result. The default behaviour is the same. If we don't set the separation option, it split the text any where.
-
- 06 9月, 2012 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 30 8月, 2012 4 次提交
-
-
由 kennyj 提交于
-
由 Christos Zisopoulos 提交于
-
由 Christos Zisopoulos 提交于
-
由 David Heinemeier Hansson 提交于
Add automatic template digests to all CacheHelper#cache calls (originally spiked in the cache_digests plugin) *DHH*
-
- 28 8月, 2012 7 次提交
-
-
由 Piotr Sarnacki 提交于
We extend it with self, but the methods were not working properly were used directly on module.
-
由 Piotr Sarnacki 提交于
-
由 Piotr Sarnacki 提交于
ActionDispatch::Routing::UrlFor was always required in UrlHelpers. This was changed by splitting previous implementation of UrlHelper into 2 modules: ActionView::Helpers::UrlHelper and ActionView::Routing::UrlHelper. The former one keeps only basic implementation of url_for. The latter adds features that allow to use routes and is only required when url_helpers or mounted_helpers are required.
-
由 Piotr Sarnacki 提交于
default_formats array is used by LookupContext in order to allow rendering templates when :formats option is not passed. Previously it was always set to Mime::SET, which created dependency on Action Pack. In order to remove this dependency, Mime::SET is used only if ActionController is loaded.
-
由 Piotr Sarnacki 提交于
Automatically handling mime types for things other than :rss and :atom is not functionality that justifies dependency on Mime::Type from actionpack.
-
由 Piotr Sarnacki 提交于
We can use another way to instantiate ActionView::Base, by passing renderer as a first option. Thanks to that we can just pass prefixes to LookupContext instead stubbing them on the controller. This is also good, because that kind of API is used in Rails code.
-
由 Piotr Sarnacki 提交于
Since it's more about DOM classes and ids it belongs to Action View better. What's more, it's more convenient to make it part of Action View to follow the rule that Action Pack can depend on Action View, but not the other way round.
-
- 26 8月, 2012 2 次提交
-
-
由 Carlos Antonio da Silva 提交于
Instead of building a Blog::Post instance for every test in form helper tests, just build it in the test that uses it.
-
由 Vasiliy Ermolovich 提交于
we should take disabled option not only from `html_options` hash but from `options` hash too like `build_select` method does it. So datetime_select("post", "updated_at", { :discard_minute => true }, { :disabled => true }) datetime_select("post", "updated_at", :discard_minute => true , :disabled => true) both these variants work now closes #7431
-
- 22 8月, 2012 1 次提交
-
-
由 Sandeep 提交于
-
- 14 8月, 2012 2 次提交
-
-
由 Lucas Uyezu 提交于
-
由 Evan Tann 提交于
Updated documentation to demonstrate start_hour and end_hour options
-
- 12 8月, 2012 2 次提交
-
-
由 Carlos Antonio da Silva 提交于
We can avoid creating extra hashes with #merge, and use #merge! instead.
-
由 Carlos Antonio da Silva 提交于
Further simplify the option_html_attributes method after the changes introduced in dacbcbe5 to not escape the html options here (since they're going to be escaped down the chain in content tag).
-
- 11 8月, 2012 1 次提交
-
-
由 schneems 提交于
if nil or an empty array is passed into form_for you get a horrible error message, this one is much more indicative of what the programmer needs to know to fix the problem.
-
- 10 8月, 2012 1 次提交
-
-
由 Santiago Pastorino 提交于
Thanks to Marek Labos & Nethemba CVE-2012-3465
-
- 09 8月, 2012 1 次提交
-
-
由 David Heinemeier Hansson 提交于
Allow data attributes to be set as a first-level option for form_for, so you can write `form_for @record, data: { behavior: 'autosave' }` instead of `form_for @record, html: { data: { behavior: 'autosave' } }` *DHH*
-
- 08 8月, 2012 2 次提交
-
-
由 Rafael Mendonça França 提交于
We recommend the use of Unobtrusive JavaScript instead. For example: link_to "Greeting", "#", :class => "nav_link" $(function() { $('.nav_link').click(function() { // Some complex code return false; }); }); or link_to "Greeting", '#', onclick: "alert('Hello world!'); return false", class: "nav_link" for simple cases. This reverts commit 3acdd652.
-
由 David Heinemeier Hansson 提交于
Revert "Merge pull request #7033 from kron4eg/master". Not a a fan at all of what this makes ERB files look like. This reverts commit 46b8bcee, reversing changes made to 2f58795e.
-
- 07 8月, 2012 2 次提交
-
-
由 Artiom Di 提交于
Restoring the '%' trim mode for ERb templates, allowing for a leading percent sign on a line to indicate non-inserted Ruby code.
-
由 Prem Sichanugrist 提交于
Rails were including 'application.js' to the pack when using `javascript_include_tag :all` even there's no application.js in the public directory.
-
- 06 8月, 2012 2 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Xavier Noria 提交于
Selecting which key extensions to include in active_support/rails made apparent the systematic usage of Object#in? in the code base. After some discussion in https://github.com/rails/rails/commit/5ea6b0df9a36d033f21b52049426257a4637028d we decided to remove it and use plain Ruby, which seems enough for this particular idiom. In this commit the refactor has been made case by case. Sometimes include? is the natural alternative, others a simple || is the way you actually spell the condition in your head, others a case statement seems more appropriate. I have chosen the one I liked the most in each case.
-
- 03 8月, 2012 3 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Xavier Noria 提交于
-
由 kennyj 提交于
-
- 01 8月, 2012 1 次提交
-
- 25 7月, 2012 1 次提交
-
-
由 Lucas Mazza 提交于
-
- 23 7月, 2012 1 次提交
-
-
由 Rafael Mendonça França 提交于
escaped
-
- 22 7月, 2012 3 次提交
-
-
由 Vasiliy Ermolovich 提交于
we don't need to escape values in this method as we pass these html attributes to `tag_options` method that handle escaping as well. it fixes the case when we want to pass html5 data options
-
-
-