Last active
September 3, 2015 18:45
-
-
Save smathy/e174f3d21f514db910f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= simple_form_for model do |f| | |
= f.error_notification | |
.form-inputs | |
= f.input :name | |
.form-actions | |
= f.button :submit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo | |
class Form < ::Cell::Concept | |
inherit_views Cell | |
include ActionView::RecordIdentifier | |
include SimpleForm::ActionViewExtensions::FormHelper | |
def show | |
render :form | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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