This file contains hidden or 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
-# Example form | |
= simple_form_for @some_model do |f| | |
-# Show error notification at top (general error text) | |
= f.error_notification | |
-# Show base errors at top | |
= f.error_notification message: (f.error :base) if f.object.errors[:base].present? | |
-# Regular input | |
= f.input :name, autofocus: true | |
-# Select input referencing other model |