David Kimura PRO said over 3 years ago on Form Wizards from Scratch :
  I would handle this with the buttons as the names would have a commit param. I'm not sure how this would be handled in i18n land. I'd assume that you'd pass a value attribute on the form.submit with previous or continue.

    <%= form.submit "Previous", class: 'btn btn-secondary' %>
    <%= form.submit "Continue", class: 'btn btn-primary' %>


You can then navigate to the appropriate routes on the create action.

      def create
        @company_profile = CompanyProfile.new(company_profile_params)
        if @company_profile.valid?
          session[:company_profile] = {
            name: @company_profile.name,
            website: @company_profile.website
          }
          
          redirect_to redirection_url
        else
          render :new
        end
      end

      private

      def redirection_url
        case params[:commit]
        when "Continue"
          new_wizards_companies_location_path
        when "Previous
          new_wizards_companies_[PREVIOUS_RESOURCE_STEP_HERE]_path
        else
          # handle non matching (likely the next step)
        end
      end