-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added basic relations between user and group
- Loading branch information
Showing
20 changed files
with
85 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
</p> | ||
<p> | ||
<b>Members:</b><br/> | ||
<%= @x.email %> | ||
</p> | ||
|
||
<%= link_to 'Edit', edit_group_path(@group) %> | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<h1>Editing group</h1> | ||
<h1>Editing user</h1> | ||
|
||
<%= render 'form' %> | ||
|
||
<%= link_to 'Show', @group %> | | ||
<%= link_to 'Back', groups_path %> | ||
<%= link_to 'Show', @user %> | | ||
<%= link_to 'Back', users_path %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
<h1>Listing groups</h1> | ||
<h1>Listing users</h1> | ||
|
||
<table> | ||
<tr> | ||
<th>Name</th> | ||
<th></th> | ||
</tr> | ||
|
||
<% @groups.each do |f| %> | ||
<% @user.each do |f| %> | ||
<tr> | ||
<td><%= f.group_name %></td> | ||
<td><%= f.email %></td> | ||
<td><%= link_to 'Show', f %></td> | ||
<td><%= link_to 'Edit', edit_group_path(f) %></td> | ||
<td><%= link_to 'Edit', edit_user_path(f) %></td> | ||
<td><%= link_to 'Destroy', f, confirm: 'Are you sure?', method: :delete %></td> | ||
</tr> | ||
<% end %> | ||
</table> | ||
|
||
<br /> | ||
|
||
<%= link_to 'New Group', new_group_path %> | ||
<%= link_to 'New User', new_user_path %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
<p id="notice"><%= notice %></p> | ||
|
||
<p> | ||
<b>Group name:</b><br/> | ||
<%= @group.group_name %> | ||
</p> | ||
<p> | ||
<b>Description</b><br/> | ||
<%= @group.description %> | ||
</p> | ||
<p> | ||
<b>Members:</b><br/> | ||
<b>User name:</b><br/> | ||
<%= @user.email %> | ||
</p> | ||
|
||
<%= link_to 'Edit', edit_group_path(@group) %> | | ||
<%= link_to 'Back', groups_path %> | ||
<%= link_to 'Edit', edit_user_path(@user) %> | | ||
<%= link_to 'Back', users_path %> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters