Commit b2f787c0
Changed files (7)
app
controllers
views
config
spec
controllers
app/views/creations/show.html.erb
@@ -32,7 +32,7 @@
<% if @creation.tags.any? %>
<span> <i class="icon-tags"></i> </span>
<% @creation.tags.each do |tag| -%>
- <a href="<%= url_for tag_path(tag.name) %>"><span class="label"><%= tag.name %></span></a>
+ <a href="<%= url_for creation_tag_path(tag.name) %>"><span class="label"><%= tag.name %></span></a>
<% end -%>
<% end -%>
<div class="row">
config/routes.rb
@@ -27,10 +27,10 @@ Cake::Application.routes.draw do
get 'categories/:slug/page/:page' => "categories#show"
# /tags
- resources :tags, :only => [:index, :show], :path => :t do
+ resources :creation_tags, :only => [:index, :show], :path => :t do
get 'page/:page', :action => :show
end
- get 'tags/:id' => 'tags#show'
+ get 'tags/:id' => 'creation_tags#show'
# /search
get "search/index"