Ticket #23 (assigned defect)
Mixing rhtml, mab, and content_for
| Reported by: | joeruby | Owned by: | why |
|---|---|---|---|
| Priority: | major | Milestone: | 1.0 |
| Component: | gem | Version: | 0.5 |
| Keywords: | sub-templates rthml | Cc: |
Description
Creating sub-templates using content_for doesn't seem to work when used with rhtml templates. e.g.
application.rhtml
h1 'application'
<%= @content_for_layout %>
members.mab
@content = @content_for_layout
@content_for_layout = nil
content_for('layout') do
h2 'members'
self << @content
end
render 'layouts/application', :content_for_layout=@content_for_layout
members/index.mab
h3 'index'
With the above, application and index get rendered, but for some reason not members. If I change application.rhtml to a Markaby template, it works.
Change History
Note: See
TracTickets for help on using
tickets.