title: Link to all posts with same tag, using acts_as_taggable
body: <p>So I have acts_as_taggable working properly. I am able to add the tags when creating a new post and I can see all the tags when looking at the posts. What Im trying to do is create a nav link for certain tags. For instance I want a nav link that says "Movies" and when I click that link I want all the posts that I have created that have the tag "Movies" to show. This is my post_controller.rb</p>
  
  <pre><code>def index
    @posts = current_author.posts.most_recent
  end
  
  def show
  end
  
  def new
    @post = current_author.posts.new
  end
  
  private
    def set_post
      @post = current_author.posts.friendly.find(params[:id])
    end
  
    def post_params
      params.require(:post).permit(:title, :body, :description, :banner_image_url, :tag_list)
    end
  end
  
  end
  </code></pre>
  
  <p>My post.rb that deals with the tags</p>
  
  <pre><code>acts_as_taggable # Alias for acts_as_taggable_on :tags
  
  extend FriendlyId
  friendly_id :title, use: :slugged
  
  belongs_to :author
  
  
  scope :most_recent, -&gt; { order(published_at: :desc) }
  scope :published, -&gt; { where(published: true) }
  scope :with_tag, -&gt; (tag) { tagged_with(tag) if tag.present? }
  
  scope :list_for, -&gt; (page, tag) do
   recent_paginated(page).with_tag(tag)
  end
  </code></pre>