lib/generators/cambium/templates/app/helpers/admin_helper.rb in cambium-0.2.1 vs lib/generators/cambium/templates/app/helpers/admin_helper.rb in cambium-0.2.2
- old
+ new
@@ -51,11 +51,12 @@
side ||= 'left'
render :partial => "admin/shared/forms/form_column_#{side}", :locals => {
:title => title, :content => capture(&block) }
end
- def wysiwyg(form, field = :body)
- render :partial => 'admin/shared/forms/editor', :locals => { :f => form, :field => field }
+ def wysiwyg(form, field = :body, idx = 1)
+ render :partial => 'admin/shared/forms/editor', :locals => {
+ :f => form, :field => field, :idx => idx }
end
def publishable_fields(form)
render :partial => 'admin/shared/forms/publishable', :locals => { :f => form }
end