user and session generated
This commit is contained in:
parent
0cec39413f
commit
53819e6839
18 changed files with 111 additions and 0 deletions
2
app/views/sessions/create.html.erb
Normal file
2
app/views/sessions/create.html.erb
Normal file
|
@ -0,0 +1,2 @@
|
|||
<h1>Sessions#create</h1>
|
||||
<p>Find me in app/views/sessions/create.html.erb</p>
|
2
app/views/sessions/new.html.erb
Normal file
2
app/views/sessions/new.html.erb
Normal file
|
@ -0,0 +1,2 @@
|
|||
<h1>Sessions#new</h1>
|
||||
<p>Find me in app/views/sessions/new.html.erb</p>
|
3
app/views/sessions/welcome.html.erb
Normal file
3
app/views/sessions/welcome.html.erb
Normal file
|
@ -0,0 +1,3 @@
|
|||
<h1>Welcome</h1>
|
||||
<%= button_to "Login", '/login', method: :get%>
|
||||
<%= button_to "Sign Up", '/users/new', method: :get%>
|
2
app/views/users/create.html.erb
Normal file
2
app/views/users/create.html.erb
Normal file
|
@ -0,0 +1,2 @@
|
|||
<h1>Users#create</h1>
|
||||
<p>Find me in app/views/users/create.html.erb</p>
|
8
app/views/users/new.html.erb
Normal file
8
app/views/users/new.html.erb
Normal file
|
@ -0,0 +1,8 @@
|
|||
<h1>Sign Up</h1>
|
||||
<%= form_for @user do |f|%>
|
||||
<%= f.label :username%><br>
|
||||
<%= f.text_field :username%><br>
|
||||
<%= f.label :password%><br>
|
||||
<%= f.password_field :password%><br>
|
||||
<%= f.submit %>
|
||||
<%end%>
|
Loading…
Add table
Add a link
Reference in a new issue