Created
July 21, 2016 15:51
-
-
Save Frank004/2e564efe097d06b487b0c7463d3b1921 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= 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 %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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