Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More cleanup of ActionView and reduction in need for blocks in some c…
…ases: * only one of partial_name or :as will be available as a local * `object` is removed * Simplify _layout_for in most cases. * Remove <% render :partial do |args| %> * <% render :partial do %> still works fine
- Loading branch information
Showing
9 changed files
with
14 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<%= customer.name %> <%= customer.name %> <%= customer_with_var.name %> | ||
<%= customer.name %> <%= customer.name %> <%= customer.name %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<%= hash_object[:first_name] %> | ||
<%= object[:first_name].reverse %> | ||
<%= hash_object[:first_name].reverse %> |
1 change: 0 additions & 1 deletion
1
actionpack/test/fixtures/test/using_layout_around_block_with_args.html.erb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9f5cd01
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit broke the ability to yield(:foo) along with content_for(:foo) with regards to layouts. So normal usage like this rails cast is broken http://railscasts.com/episodes/8-layouts-and-content-for
I'll be testing some more and possibly making a recommendation, if at the least a tests that captures what should be happening. Perhaps I am missing something and content_for is not expected to talk to the layout. Right now it generates no block given errors.
9f5cd01
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created a ticket here.
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/3089-regression-in-30pre-with-content_for-and-layouts
9f5cd01
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
metaskills, odd, works perfectly for me