Skip to content

Commit f643e5e

Browse files
author
Ashley Yang
committed
Adding links to pictures, need to pull because recipes show page are broken
1 parent 4d07a90 commit f643e5e

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

app/controllers/sessions_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def create
2525
end
2626

2727
def destroy
28-
flash[:notice] = "Thank's for stopping by!"
28+
flash[:notice] = "Thanks for stopping by!"
2929
logout_user
3030
redirect_to root_path
3131
end

app/views/categories/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class='category-card'>
1010
<div class='fav-star'><span class='rating_text'><%=stars(recipe[:rating]) %></span>
1111
</div>
12-
<div class='thumbnail' style="background-image: url(<%=recipe[:image_url] %>)"></div>
12+
<a href="/"><div class='thumbnail' style="background-image: url(<%= recipe[:image_url] %>)"></div></a>
1313
<%=recipe[:title] %>
1414
</div>
1515
<% end %>

app/views/users/show.html.erb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
<% @user.recipes.each do |recipe| %>
1313
<li><%= link_to "#{recipe.title}", recipe %></li>
1414
<% end %>
15-
<% if !admin? %>
16-
<h3>Add New Recipe</h3>
17-
18-
<% end %>
1915
</ul>
2016

2117

0 commit comments

Comments
 (0)