compatibility with new cmtool version

This commit is contained in:
2015-07-16 18:55:48 +02:00
parent 544e0b019a
commit 69ff935c9e
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ private
when Page then record.name
else record
end
main_app.go_to_path(str, locale: locale)
main_app.page_path(str, locale: locale)
end
helper_method :go_to_page_path
#END CMTOOL
+1 -1
View File
@@ -5,7 +5,7 @@ class ContactFormsController < ApplicationController
Notifier.contact_form(@contact_form.id).deliver_later
redirect_to root_path, notice: t('contact_form.submitted')
else
redirect_to go_to_path('contact', locale: I18n.locale), alert: @contact_form.errors.full_messages.join(', ')
redirect_to page_path('contact', locale: I18n.locale), alert: @contact_form.errors.full_messages.join(', ')
end
end
+3 -3
View File
@@ -5,10 +5,10 @@
.fb-like data-href="http://mozo.bar/" data-layout="button" data-action="like" data-show-faces="true" data-share="true"
= link_to t('devise.registrations.link'), main_app.new_suppliers_path, class: 'signup-button'
= yield :footer
/= link_to 'disclaimer', go_to_path('disclaimer', locale: 'en')
/= link_to 'disclaimer', page_path('disclaimer', locale: 'en')
/'
= link_to 'privacy', main_app.go_to_path('privacy', locale: 'en')
= link_to 'privacy', main_app.page_path('privacy', locale: 'en')
'
= link_to 'contact', main_app.go_to_path('contact', locale: 'en')
= link_to 'contact', main_app.page_path('contact', locale: 'en')
.clearfix
.footer-bottom &copy; mozo.bar 2015