forked from fixin.me/fixin.me
Generate User scaffold
bundle exec rails generate scaffold user email:string{64}:uniq
status:integer
This commit is contained in:
10
app/views/users/show.html.erb
Normal file
10
app/views/users/show.html.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
<p style="color: green"><%= notice %></p>
|
||||
|
||||
<%= render @user %>
|
||||
|
||||
<div>
|
||||
<%= link_to "Edit this user", edit_user_path(@user) %> |
|
||||
<%= link_to "Back to users", users_path %>
|
||||
|
||||
<%= button_to "Destroy this user", @user, method: :delete %>
|
||||
</div>
|
||||
Reference in New Issue
Block a user