Skip to content
Snippets Groups Projects
Commit 23ca5544 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

fix

parent 48e5aec3
No related branches found
No related tags found
No related merge requests found
......@@ -4,17 +4,22 @@ class Showcase::HomeController < Showcase::ApplicationController
@features = Communication::Website::Showcase.features
@websites = Communication::Website.in_showcase
.page(params[:page])
.per(24)
end
def tag
@tag = Communication::Website::Showcase::Tag.find_by!(slug: params[:tag])
@websites = @tag.websites.in_showcase
.page(params[:page])
.per(24)
end
def feature
feature = params[:feature].to_sym
@title = Communication::Website::Showcase.title_for_feature(feature)
@websites = Communication::Website::Showcase.websites_for_feature(feature).page(params[:page])
@websites = Communication::Website::Showcase.websites_for_feature(feature)
.in_showcase
.page(params[:page])
.per(24)
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment