lib/generators/simple_hashtag/templates/views/hashtags_controller.rb
class HashtagsController < ApplicationController
def index
@hashtags = SimpleHashtag::Hashtag.all
end
def show
@hashtag = SimpleHashtag::Hashtag.find_by_name(params[:hashtag])
@hashtagged = @hashtag.hashtaggables if @hashtag
end
end