Skip to content

Instantly share code, notes, and snippets.

@smathy
Last active September 3, 2015 18:45
Show Gist options
  • Save smathy/e174f3d21f514db910f0 to your computer and use it in GitHub Desktop.
Save smathy/e174f3d21f514db910f0 to your computer and use it in GitHub Desktop.
= simple_form_for model do |f|
= f.error_notification
.form-inputs
= f.input :name
.form-actions
= f.button :submit
class Foo
class Form < ::Cell::Concept
inherit_views Cell
include ActionView::RecordIdentifier
include SimpleForm::ActionViewExtensions::FormHelper
def show
render :form
end
end
end
%h1 New foo
= concept 'foo/form', @form
= link_to 'Back', foos_path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment