Sha256: 0512fce0a3c79462e28dc99f0d140b52cfb60cdcf0d10eda9e5864f1d51ecbcf
Contents?: true
Size: 651 Bytes
Versions: 5
Compression:
Stored size: 651 Bytes
Contents
= f.simple_fields_for name do |ff| - if f.object && f.object.errors[name.to_sym].any? - f.object.errors.full_messages_for(name.to_sym).each do |e| .alert.alert-danger= e = ff.input_field :name, :as => :hidden, :value => name.to_s - if options[:use_input_field] == false = ff.input :content, options[:field] - else = ff.input_field :content, options[:field][:input_html] -# = ff.input :content, :as => :ckeditor, :label => options[:label].is_a?(String) ? options[:label] : name.to_s.titleize, -# :input_html => pb.content.present? ? options[:input_html].merge({:value => pb.content}) : options[:input_html]
Version data entries
5 entries across 5 versions & 1 rubygems