lib/generators/ecm/contact/install/templates/initializer.rb in ecm_contact2-5.1.3 vs lib/generators/ecm/contact/install/templates/initializer.rb in ecm_contact2-5.2.0
- old
+ new
@@ -59,22 +59,22 @@
#
config.base_controller = '<%= base_controller_class_name %>'
# Add additional information to the contact form. This will be printed
# between the heading and the form. You should provide a proc, or
- # an object, that reponds to #call. The view ist provided as paramter.
+ # an object, that reponds to #call. The view ist provided as parameter.
#
# 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) }
+ # default: config.after_create_url = ->(controller) { controller.root_path }
#
- config.after_create_url = ->(controller) { controller.url_for(action: :index) }
+ config.after_create_url = ->(controller) { controller.root_path }
# Set the sender address.
#
# default: config.sender = ->(mail_form) { %("#{mail_form.name}" <#{mail_form.email}>) }
#