Skip to content

Instantly share code, notes, and snippets.

@Frank004
Created July 21, 2016 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Frank004/2e564efe097d06b487b0c7463d3b1921 to your computer and use it in GitHub Desktop.
Save Frank004/2e564efe097d06b487b0c7463d3b1921 to your computer and use it in GitHub Desktop.
<%= form_tag({controller: "survey_trans", action: "password_confirmation"}, {method: :get}) do |f| %>
<%= text_field_tag :password_confirmation, params[:password_confirmation], class: "form-control", placeholder: "password" %>
<% end %>
class SurveyTransController < ApplicationController
skip_before_filter :authenticate_user!
layout "survey"
def password_confirmation
end
def survey_form_section
@survey = Survey.find_by_password(params[:password_confirmation])
end
def survey_form
end
def survey_finish
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment