app/helpers/render_helper.rb in outpost-cms-0.0.3 vs app/helpers/render_helper.rb in outpost-cms-0.0.4
- old
+ new
@@ -11,13 +11,13 @@
# <table>...</table>
# <% end %>
#
# Returns a String of the table, or a message if no records are present.
def list_table(records, model, &block)
- render '/outpost/shared/list_table',
- :model => model,
- :records => records,
+ render '/outpost/shared/list_table',
+ :model => model,
+ :records => records,
:table => capture(&block)
end
# Public: Render a fieldset.
#
@@ -32,10 +32,10 @@
# <input type="text">...
# <% end %>
#
# Returns a String of the fieldset.
def form_block(title="", &block)
- render "/outpost/shared/form_block",
- :title => title,
+ render "/outpost/shared/form_block",
+ :title => title,
:body => capture(&block)
end
end