Advertisement
Guest User

Untitled

a guest
May 26th, 2015
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #index.html.erb
  2.  
  3. <%= form_tag (controller: "users", action: "forgetpassword", method: "post") do %>
  4. <%= text_field "", "" %>
  5. <%= button_to "send", class: "" %>
  6. <% end %>
  7.  
  8.  
  9. # users_controller
  10.  
  11. def forgetpassword
  12. flash[:notice] = ""
  13. redirect_to "/login"
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement