Skip to content

Instantly share code, notes, and snippets.

@stefanoverna
Created June 7, 2012 08:04
Show Gist options
  • Select an option

  • Save stefanoverna/2887325 to your computer and use it in GitHub Desktop.

Select an option

Save stefanoverna/2887325 to your computer and use it in GitHub Desktop.
nel modello:
class Page < ActiveRecord
has_image :image
has_image :featured_image
has_gallery :gallery
has_gallery :secondary_gallery
end
nell'editor
Railsyard::Backend.define_editor_for Page do
edit do
image :image
image :featured_image, without: [:alt, :title]
gallery :gallery
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment