- 30 8月, 2012 1 次提交
-
-
由 David Heinemeier Hansson 提交于
Add automatic template digests to all CacheHelper#cache calls (originally spiked in the cache_digests plugin) *DHH*
-
- 29 8月, 2012 1 次提交
-
-
由 Xavier Noria 提交于
Changes in old branches needed to be manually synched in CHANGELOGs of newer ones. This has proven to be brittle, sometimes one just forgets this manual step. With this commit we switch to CHANGELOGs per branch. When a new major version is cut from master, the CHANGELOGs in master start being blank. A link to the CHANGELOG of the previous branch allows anyone interested to follow the history.
-
- 28 8月, 2012 2 次提交
-
-
由 schneems 提交于
Many named routes have keys that are required to successfully resolve. If a key is left off like this: <%= link_to 'user', user_path %> This will produce an error like this: No route matches {:action=>"show", :controller=>"users"} Since we know that the :id is missing, we can add extra debugging information to the error message. No route matches {:action=>"show", :controller=>"users"} missing required keys: [:id] This will help new and seasoned developers look closer at their parameters. I've also subclassed the routing error to be clear that this error is a result of attempting to generate a url and not because the user is trying to visit a bad url. While this may sound trivial this error message is misleading and confuses most developers. The important part isn't what's in the options its's what's missing. Adding this information to the error message will make debugging much more obvious. This is the sister pull request of https://github.com/rails/journey/pull/44 which will be required to get they missing keys into the correct error message. Example Development Error in Rails: http://cl.ly/image/3S0T0n1T3421
-
由 Piotr Sarnacki 提交于
-
- 26 8月, 2012 1 次提交
-
-
由 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
-
- 25 8月, 2012 1 次提交
-
-
由 Prem Sichanugrist 提交于
This functionality will be available from gem `active_record-session_store` instead.
-
- 22 8月, 2012 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 19 8月, 2012 1 次提交
-
-
由 Jim Jones 提交于
With a value of "nosniff", this prevents Internet Explorer from MIME-sniffing a response away from the declared content-type.
-
- 17 8月, 2012 1 次提交
-
-
由 hollowspace 提交于
-
- 15 8月, 2012 1 次提交
-
-
由 David Heinemeier Hansson 提交于
-
- 14 8月, 2012 2 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Evan Tann 提交于
Updated documentation to demonstrate start_hour and end_hour options
-
- 12 8月, 2012 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 11 8月, 2012 2 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Santiago Pastorino 提交于
-
- 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 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 05 8月, 2012 1 次提交
-
-
由 Andrew White 提交于
Passing options as the last value in an array doesn't work with form_for. This reverts commit 6be564c7.
-
- 04 8月, 2012 1 次提交
-
-
由 Andrew White 提交于
Rather than keep the url options in record_or_hash_or_array, extract it and reverse merge with options as it may contain important private keys like `:routing_type`. Closes #7259
-
- 03 8月, 2012 1 次提交
-
-
由 Steve Klabnik 提交于
-
- 30 7月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 24 7月, 2012 1 次提交
-
-
由 Santiago Pastorino 提交于
-
- 22 7月, 2012 2 次提交
-
-
- 18 7月, 2012 1 次提交
-
-
由 Carlos Galdino 提交于
This applies to the following helpers: `button_to` `button_tag` `image_submit_tag` `link_to` `submit_tag`
-
- 09 7月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
- 08 7月, 2012 1 次提交
-
-
由 schneems 提交于
-
- 07 7月, 2012 1 次提交
-
-
由 kennyj 提交于
-
- 03 7月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
Also fix some wrong formatting. Related discussion: https://github.com/rails/rails/commit/ab72040b74f742b6676b2d2a5dd029bfdca25a7a#commitcomment-1525256
-
- 01 7月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
- 15 6月, 2012 1 次提交
-
-
由 kennyj 提交于
-
- 12 6月, 2012 1 次提交
-
-
由 Santiago Pastorino 提交于
-
- 01 6月, 2012 4 次提交
-
-
由 Piotr Sarnacki 提交于
Similarly to 65250022, this allows to use routes helpers for mounted helpers, but this time in ActionView::TestCase
-
由 Rafael Mendonça França 提交于
-
由 Piotr Sarnacki 提交于
In integration tests, you might want to use helpers from engines that you mounted in your application. It's not hard to add it by yourself, but it's unneeded boilerplate. mounted_helpers are now included by default. That means that given engine mounted like: mount Foo::Engine => "/foo", :as => "foo" you will be able to use paths from this engine in tests this way: foo.root_path #=> "/foo" (closes #6573)
-
由 Jeremy Friesen 提交于
Prior to this patch the existing .force_ssl method handles both defining the filter and handling the logic for performing the redirect. With this patch the logic for redirecting to the HTTPS protocol is separated from the filter logic that determines if a redirect should occur. By separating the two levels of behavior, an instance method for ActionController (i.e. #force_ssl_redirect) is exposed and available for more granular SSL enforcement. Cleaned up indentation.
-