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,14 @@
<p style="color: green"><%= notice %></p>
<h1>Users</h1>
<div id="users">
<% @users.each do |user| %>
<%= render user %>
<p>
<%= link_to "Show this user", user %>
</p>
<% end %>
</div>
<%= link_to "New user", new_user_path %>