title: Rails for Zombies Lab 4 > Exercise 3
body: <p><br>
  I stucked in the fourth Rails for Zombies lab at the third exercise. This is my task: <em>Create action that will create a new Zombie and then redirect to the created zombie's show page</em>.
  I've got the following params array: </p>
  
  <pre><code>params = { :zombie =&gt; { :name =&gt; "Greg", :graveyard =&gt; "TBA" } }
  </code></pre>
  
  <p>I wrote the following code as a solution:</p>
  
  <pre><code>def create
     @zombie = Zombie.create   
     @zombie.name = params[ :zombie [ :name ] ]   
     @zombie.graveyard = params[ :zombie [ :graveyard ] ]
     @zombie.save   
  
     redirect_to(create_zombie_path)
  end
  </code></pre>
  
  <p>But when I submit it I got the following error:<br>
  <code>#&lt;TypeError: can't convert Symbol into Integer&gt;</code></p>
  
  <p>I know that I made a mistake but I cannot figure out where. Please help me.</p>