Sha256: ba0a589eb939a7607f3455b5088f07fd97d57444527060091a92a5be5bfaaa25
Contents?: true
Size: 393 Bytes
Versions: 15
Compression:
Stored size: 393 Bytes
Contents
class MenuEditor::Category::FormWidget < Apotomo::Widget responds_to_event :submit def display @categories = ::Category.scoped render end def submit(event) @menu_item = MenuItem.new params[:menu_item] if @menu_item.save trigger :new_menu_item, :menu_item => @menu_item replace :state => :display else replace :view => :display end end end
Version data entries
15 entries across 15 versions & 1 rubygems