Topic: 2 instance variables of the same name in different controllers

I finished Michael Hartl's Ruby on Rails Tutorial. Now I'm working on the suggested exercises. The application he builds is basically a Twitter clone where one can post Microposts and they appear in your feed … st_created

The main page is in home.html.erb from the StaticPagesController and features a Micropost textbox where one can post Microposts. The code for the textbox looks like so:

<%= form_for(@micropost) do |f| %>
  <%= render 'shared/error_messages', object: f.object %>
  <div class="field">
    <%= f.text_area :content, placeholder: "Compose new micropost..." %>
  <%= f.submit "Post", class: "btn btn-large btn-primary" %>
<% end %>

The @micropost variable is initialized in the StaticPagesController like so:

class StaticPagesController < ApplicationController
  def home
    if signed_in?
      @micropost =

Now inside the MicropostsController there's a create action like so:

def create
  @micropost =[:micropost])
    flash[:success] = "Micropost created!"
    redirect_to root_url
    @feed_items = []
    render 'static_pages/home'

My question is what is the purpose of the first @micropost variable as opposed to the second?  What does the first @micropost contain if it builds the micropost without any parameters passed into it?

thanks, mike