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:
14
app/views/users/index.html.erb
Normal file
14
app/views/users/index.html.erb
Normal 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 %>
|
||||
Reference in New Issue
Block a user