Guest User

Untitled

a guest
Jan 26th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. class ApplicationController < ActionController::Base
  2. protect_from_forgery with: :exception
  3. end
  4.  
  5. <form action="/users" method="post" accept-charset="UTF-8">
  6. <label for="username">Username:</label><br>
  7. <input id="username" name="user[username]" type="text" /><br>
  8. <label for="email">Email:</label><br>
  9. <input id="email" name="user[email]" type="text" /><br>
  10. <label for="password">Password:</label><br>
  11. <input id="password" name="user[password]" type="text" /><br>
  12. <input type="hidden" name="authenticity_token" value="form_authenticity_token %>">
  13. <input type="submit" value="Submit">
  14. </form>
  15.  
  16. Rails.application.routes.draw do
  17.  
  18. resources :users, only: [:new, :create]
  19. end
Add Comment
Please, Sign In to add comment