1. An array uses indices and a hash uses “keys”
2. When the order matters, use an array.
3. It’s a test that simulates a browser accessing our application.
4. puts (pronounced “put-ess”)
An array uses indices and a hash uses “keys”
1. A controller is a container for a group of (possibly dynamic) web pages.
2. An array uses indices and a hash uses “keys”
3. It’s a test that simulates a browser accessing our application.
4. When the order matters, use an array.
A controller is a container for a group of (possibly dynamic) web pages.
1. code = tweet,url = /tweets/1
2. @tweet = Tweet.create(:status => params[:status])
3. params = {:tweet => {:status => “I’m dead” }}
4. @tweet = Tweet.create(:status => params[:tweet][:status])
@tweet = Tweet.create(:status => params[:tweet][:status])