Sha256: 14fc6e55665d23fd032cd49de8c5bd9b83b702c33915bd4f9e29100a78bc361c
Contents?: true
Size: 569 Bytes
Versions: 3
Compression:
Stored size: 569 Bytes
Contents
Coprl::Presenters.define(:edit, namespace: :<%= plural_table_name %>) do helpers <%= controller_class_name %>Helper grid do column 1 column 5 do heading 'Editing <%= human_name %>' content do attach '_form' button 'Update' do event :click do updates <%= url_helper_prefix %>_path(<%= singular_table_name %>) end end end link 'Show', presenter_path(:show, <%= singular_table_name %>_id: <%= singular_table_name %>.id) link 'Back', presenter_path(:index) end end end
Version data entries
3 entries across 3 versions & 1 rubygems