I am learning rails 4 and i am bit confused in some notation in the tutorial i am following. I am following Lynda Ruby on Rails 4 Essential Training.

I have a simple controller with crud actions. In New action i am assing the instance variable the parameter as this (with curly braces)

```
@subject = Subject.new({:name=>'default'})

```

But in Create actions I am doing this:

```
Subject.new(params[:subject])
redirect_to(:action=>'index')

```

Shouldn't this `params[:subject]` and `:action=>'index'` should also be inside the curly braces?

How can i know when to use curly braces and not?