Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed Page#[] for Page#content_for() and refactored internals of pa…
…ge. Documented some changes so far.
- Loading branch information
Showing
8 changed files
with
41 additions
and
40 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
6 changes: 3 additions & 3 deletions
6
pages/app/views/refinery/admin/pages/_page_part_field.html.erb
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,5 +1,5 @@ | |||
<div class='page_part' id='<%= new_part ? "page_part_new_#{part_index}" : part.to_param %>'> | <div class='page_part' id='<%= new_part ? "page_part_new_#{part_index}" : part.to_param %>'> | ||
<%= hidden_field_tag "page[parts_attributes][#{part_index}][title]", part.title if new_part %> | <%= hidden_field_tag "page[parts_attributes)[#{part_index}][title]", part.title if new_part %> | ||
<%= text_area_tag "page[parts_attributes][#{part_index}][body]", part.body, :rows => 20, :class => 'wymeditor widest' %> | <%= text_area_tag "page[parts_attributes)[#{part_index}][body]", part.body, :rows => 20, :class => 'wymeditor widest' %> | ||
<%= hidden_field_tag "page[parts_attributes][#{part_index}][position]", part_index if new_part %> | <%= hidden_field_tag "page[parts_attributes)[#{part_index}][position]", part_index if new_part %> | ||
</div> | </div> |
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