title: How do I place instances on a page without access to params in my create method?
body: <p>I have three models, <code>Subscription</code>, <code>Show</code>, and <code>Episode</code>. <code>Subscription</code>'s role is to parse the feed in its <code>:url</code> column and instantiate <code>Show</code> and <code>Episode</code>, filling their columns with Feedjira properties. </p>
  
  <p>I'm only able to access the episodes when I go to <code>shows/1/episodes/1</code>, using <code>&lt;%= render @show.episodes %&gt;</code> in the <code>Shows</code> show view doesn't work and doesn't give any errors.</p>
  
  <p>In the Rails getting started guide, they used this as their <code>Comment</code> create method, which allowed for that.</p>
  
  <pre><code>@article = Article.find(params[:article_id])
  @comment = @article.comments.create(comment_params)
  redirect_to article_path(@article)
  </code></pre>
  
  <p>Is it the lack of params that's causing this? If so, how would I use params in this method?</p>
  
  <pre><code>def create
      @subscription = Subscription.new(subscription_params)
      if @subscription.save
          @show = Show.new
          @episodes = []
  
          # Feed
          @feed = Feedjira::Feed.fetch_and_parse @subscription.url
  
          # Show
          @show.title = @feed.title
          @show.description = @feed.description
          @show.genre = @feed.itunes_categories
          @show.url = @feed.url
          @show.logo = @feed.itunes_image
  
          @show.save
  
          # Episode
          @feed.entries.each do |item|
              @episodes.push(item)
          end
  
          @episodes.each do |item|
              @episode = @show.episodes.create
  
              @episode.title = item.title
              @episode.description = item.summary
              @episode.release_date = item.published
              @episode.show_id = @show
  
              @episode.save
          end
          redirect_to @subscription
      end
  end
  </code></pre>
  
  <p><code>episodes/_episode.hmtl.erb</code></p>
  
  <pre><code>&lt;ul&gt;
      &lt;li&gt;
          &lt;%= episode.title %&gt;
      &lt;/li&gt;
      &lt;li&gt;
          &lt;%= episode.description %&gt;
      &lt;/li&gt;
      &lt;li&gt;
          &lt;%= episode.url %&gt;
      &lt;/li&gt;
      &lt;li&gt;
          &lt;%= episode.release_date %&gt;
      &lt;/li&gt;
      &lt;li&gt;
          &lt;%= episode.show_id %&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p><code>shows/show.html.erb</code></p>
  
  <pre><code>&lt;h1&gt;Showing Show&lt;/h1&gt;
  
  &lt;h2&gt;&lt;%= @show.title %&gt;&lt;/h2&gt;
  
  &lt;%= render @show.episodes %&gt;
  </code></pre>
  
  <hr>
  
  <p>Adding my routes and models in case that's the issue:</p>
  
  <p><code>routes.rb</code></p>
  
  <pre><code>Rails.application.routes.draw do
    resources :shows do
      resources :episodes
    end
    resources :subscriptions
    root 'subscriptions#index'
  end
  </code></pre>
  
  <p><code>show.rb</code></p>
  
  <pre><code>class Show &lt; ActiveRecord::Base
      has_many :episodes, dependent: :destroy
  end
  </code></pre>
  
  <p><code>episode.rb</code></p>
  
  <pre><code>class Episode &lt; ActiveRecord::Base
      belongs_to :show
  end
  </code></pre>
  
  <p><code>subscription.rb</code></p>
  
  <pre><code>class Subscription &lt; ActiveRecord::Base
      validates :url, uniqueness: true
  end
  </code></pre>