Generate User scaffold

bundle exec rails generate scaffold user email:string{64}:uniq
  status:integer
This commit is contained in:
2023-03-09 20:20:48 +01:00
parent e497d08f75
commit deaf0fa73b
15 changed files with 263 additions and 0 deletions

View 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>