lib/generators/ecm/contact/install/templates/initializer.rb in ecm_contact2-1.2.2 vs lib/generators/ecm/contact/install/templates/initializer.rb in ecm_contact2-2.0.0

- old
+ new

@@ -45,10 +45,16 @@ # # Default: config.input_terms_of_service_css_classes = 'form-control' # config.input_terms_of_service_css_classes = '' + # Configure your form action wrapper div css classes here. + # + # Default: config.form_actions_wrapper_css_classes = 'controls form-actions well' + # + config.form_actions_wrapper_css_classes = 'controls form-actions well' + # set the base controller for the contact form # # Default: config.base_controller = 'ApplicationController' # config.base_controller = 'ApplicationController' @@ -60,6 +66,12 @@ # Example: config.additional_contact_information = lambda { |view| view.render 'additional_contact_information' } # # Default: config.additional_contact_information = nil # config.additional_contact_information = nil + + # url to redirect to after successful contact request. + # + # default: config.after_create_url = ->(controller) { controller.url_for(action: index) } + # + config.after_create_url = ->(controller) { controller.url_for(action: index) } end