forked from publiclab/plots2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
profile page instance variable fixes (publiclab#5186)
* profile page instance variable fixes * fixes * Update _tagging.html.erb * Update _tagging.html.erb * Update _follow.html.erb * Update _unfollow.html.erb * Update profile.html.erb * Update profile.html.erb
- Loading branch information
Showing
9 changed files
with
108 additions
and
97 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 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,4 +1,5 @@ | ||
<% user = user || @user # allow overriding w/ local variable %> | ||
<%= form_for(current_user.active_relationships.build) do |f| %> | ||
<div><%= hidden_field_tag :followed_id, @user.id %></div> | ||
<div><%= hidden_field_tag :followed_id, user.id %></div> | ||
<%= f.submit "Follow", class: "btn btn-primary" %> | ||
<% end %> |
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,4 +1,5 @@ | ||
<%= form_for(current_user.active_relationships.where(followed_id: @user.id).first, | ||
<% user = user || @user # allow overriding w/ local variable %> | ||
<%= form_for(current_user.active_relationships.where(followed_id: user.id).first, | ||
html: { method: :delete }) do |f| %> | ||
<%= f.submit "Unfollow", class: "btn" %> | ||
<% end %> |
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
Oops, something went wrong.