Skip to content

Commit

Permalink
update page template views to use the text page part instead of content
Browse files Browse the repository at this point in the history
  • Loading branch information
danmitchell- committed Jul 15, 2016
1 parent 9f06138 commit 89cf011
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Finally, let's go to `views/default/pages/show.html.erb` and add the following:
```ruby
<h1><%= @page.title %></h1>

<%= @page.content(:content).try(:html_safe) %>
<%= @page.content(:text).try(:html_safe) %>
<%= @page.content(:portfolio).try(:html_safe) %> # added this line
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
%h1= @page.title
= @page.content(:content).try(:html_safe)
= @page.content(:text).try(:html_safe)
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
%h1= @page.title
= @page.content(:content).try(:html_safe)
= @page.content(:text).try(:html_safe)

Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
%h1= @page.title
= @page.content(:content).try(:html_safe)
= @page.content(:text).try(:html_safe)
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
%h1= @page.title
= @page.content(:content).try(:html_safe)
= @page.content(:text).try(:html_safe)

2 changes: 1 addition & 1 deletion test/dummy/app/views/default/pages/homepage.html.haml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
%h1= @page.title
= @page.content(:content).try(:html_safe)
= @page.content(:text).try(:html_safe)
2 changes: 1 addition & 1 deletion test/dummy/app/views/default/pages/show.html.haml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
%h1= @page.title
= @page.content(:content).try(:html_safe)
= @page.content(:text).try(:html_safe)

2 changes: 1 addition & 1 deletion test/dummy/app/views/demo/pages/homepage.html.haml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
%h1= @page.title
= @page.content(:content).try(:html_safe)
= @page.content(:text).try(:html_safe)
2 changes: 1 addition & 1 deletion test/dummy/app/views/demo/pages/show.html.haml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
%h1= @page.title
= @page.content(:content).try(:html_safe)
= @page.content(:text).try(:html_safe)

0 comments on commit 89cf011

Please sign in to comment.