Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move ControllerHelper functionality to BlogController
This both removes the need to even have the controller helper, and makes more sense in terms of where it should live. Now everything that inherits from BlogController can act like a Blog Controller!
- Loading branch information
Showing
4 changed files
with
33 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<% if @categories.any? %> | ||
<h2><%= t('.title') %></h2> | ||
<ul id='categories'> | ||
<ul id="categories"> | ||
<% @categories.each do |category| %> | ||
<li<%= " class='selected'" if @category.present? and @category.id == category.id %>> | ||
<li<%= " class='selected'" if @category.present? && @category.id == category.id %>> | ||
<%= link_to "#{category.title} (#{category.post_count})", refinery.blog_category_path(category) %> | ||
</li> | ||
<% end %> | ||
</ul> | ||
<% end %> | ||
<% end %> |
This file was deleted.
Oops, something went wrong.