simoncal-saas
simoncal-saas
Searching through Book Two V4.1.0, error_notification showed up 2 times and SimpleForm showed up 16 times.
With SimpleForm removed, validation behavior changed. Outdated texts are highlighted below in _italic_ font. - Try submitting the form with a blank name. _You’ll see a warning message, “Please review...
@cmilr since SimpleForm gem isn't included, error_detection method is unavailable. Refer to create method in app/controllers/contacts_controller.rb. Since @contact.valid? is false if name, email, or content is missing, the visitor will...
@cmilr Try this in ContactsController#create method: replace **render :new** with **flash[:alert] = "Missing Name, Email or Message." redirect_to new_contact_path** or **redirect_to new_contact_path, alert: "Missing Name, Email or Message."**