app/helpers/carload/dashboard_helper.rb in carload-0.5.1 vs app/helpers/carload/dashboard_helper.rb in carload-0.5.2

- old
+ new

@@ -33,10 +33,10 @@ multiple: true, data: { placeholder: t('carload.placeholder.select', thing: t("activerecord.attributes.#{class_name}.#{label_attribute}")) } } - elsif needs_upload?(model_name, attribute_name) and image?(attribute_name) + elsif needs_upload?(model_name, attribute_name) and image?(model_name, attribute_name) upload_image form: form, image_name: attribute_name, width: 150, height: 150 elsif options[:type] == :text form.input(attribute_name, label: raw(<<-EOT <span class="control-label string optional">#{t("activerecord.attributes.#{@model_name}.#{attribute_name}")}</span> <a id='preview-#{attribute_name}-button' class='btn btn-xs' data-toggle='on'>#{t('carload.action.preview')} (Markdown)</a>