Sha256: 7e378d4f43de38d30e10f597f640f63901d4703a7544ec77b2e5e7ad54471680
Contents?: true
Size: 715 Bytes
Versions: 4
Compression:
Stored size: 715 Bytes
Contents
ActiveAdmin.register C80Features::Para, :as => 'Para' do before_filter :skip_sidebar!, :only => :index menu :label => 'Преимущества' config.sort_order = 'id_asc' permit_params :title, :content, :image index do selectable_column column :image do |ab| image_tag("#{ab.image.thumb_fill.url}") end column :title column :content do |about| about.content.html_safe end actions end form(:html => {:multipart => true}) do |f| f.inputs 'Свойства' do f.input :image, :hint => image_tag("#{f.object.image}") f.input :title f.input :content, :as => :ckeditor end f.actions end end
Version data entries
4 entries across 4 versions & 1 rubygems