lib/generators/goma/scaffold_controller/templates/confirmation_controller.rb in goma-0.0.1.rc2 vs lib/generators/goma/scaffold_controller/templates/confirmation_controller.rb in goma-0.0.1.rc3

- old
+ new

@@ -44,18 +44,18 @@ if @<%= resource_name %> @<%= resource_name %>.confirm_email! redirect_to root_url, notice: 'Your new email was successfully confirmed.' else if err == :token_expired - flash.now[:alert] = "Your email confirmation URL has expired, please change your email again." + flash[:alert] = "Your email confirmation URL has expired, please change your email again." else - flash.now[:alert] = "Email confirmation failed. Please make sure you used the full URL provided." + flash[:alert] = "Email confirmation failed. Please make sure you used the full URL provided." end if current_<%= resource_name %> - render edit_<%= resource_name%>_url(current_<%= resource_name %>) + redirect_to edit_<%= resource_name%>_url(current_<%= resource_name %>) else - render root_url + redirect_to root_url end end end end <% end -%>