clemens (owner)

Revisions

gist: 105979 Download_button fork
public
Public Clone URL: git://gist.github.com/105979.git
Embed All Files: show embed
Ruby #
1
2
3
4
5
6
7
8
9
10
11
12
class ArticleFormBuilder < ExtensibleFormBuilder
  after(:article, :author_id) do |f|
    f.field_set do
    <<-html
#{ f.text_field(:teaser_title, :label => true) }
#{ f.text_field(:teaser_subtitle, :label => true) }
#{ f.text_field(:teaser_image_url, :label => true) }
#{ f.text_area(:teaser_text, :label => true, :class => 'short') }
html
    end
  end
end