Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | changed from :object_name to :as on form_for api | Santiago Pastorino | 2010-04-05 | 1 | -1/+1 |
| | |||||
* | Refactored url_for in AV to have its own instances of the helpers instead of ↵ | wycats | 2010-04-03 | 1 | -9/+2 |
| | | | | proxying back to the controller. This potentially allows for more standalone usage of AV. It also kicked up a lot of dust in the tests, which were mocking out controllers to get this behavior. By moving it to the view, it made a lot of the tests more standalone (a win) | ||||
* | Modify assert_template to use notifications. Also, remove ↵ | Carlhuda | 2010-03-17 | 3 | -37/+44 |
| | | | | ActionController::Base#template since it is no longer needed. | ||||
* | Add deprecation notices for <% %>. | Carlhuda | 2010-03-15 | 1 | -6/+18 |
| | | | | | | | | | | | | | | | | * The approach is to compile <% %> into a method call that checks whether the value returned from a block is a String. If it is, it concats to the buffer and prints a deprecation warning. * <%= %> uses exactly the same logic to compile the template, which first checks to see whether it's compiling a block. * This should have no impact on other uses of block in templates. For instance, in <% [1,2,3].each do |i| %><%= i %><% end %>, the call to each returns an Array, not a String, so the result is not concatenated * In two cases (#capture and #cache), a String can be returned that should *never* be concatenated. We have temporarily created a String subclass called NonConcattingString which behaves (and is serialized) identically to String, but is not concatenated by the code that handles deprecated <% %> block helpers. Once we remove support for <% %> block helpers, we can remove NonConcattingString. | ||||
* | %= works for content_tag and does not require parenthesis on method call | José Valim | 2010-03-12 | 1 | -2/+2 |
| | |||||
* | Make form helpers work with <%= | wycats | 2010-03-09 | 1 | -12/+34 |
| | |||||
* | Deprecate block_called_from_erb? pending a solution for getting it into apps | Carlhuda | 2010-03-09 | 1 | -0/+60 |