I was trying to pull a segment from the URL and since I'm a rookie, kind of confused by the routing.

My code to get the last segment works fine, it's my routing that is messed up.

Ideally the URL would like this:

```
http://localhost.com/track/item/1234

```

I'm using Rails v4.0.8 & Ruby v2.0.0p451

The error is *No route matches [GET] "/track/item/1234"*

Here's the whole routes.rb file:

```
SepContact::Application.routes.draw do

  get "track/item"
  get "track/item/:id"  
  get "contacts/contact"
  resources "contacts", only: [:new, :create]

end

```