This links to the literal path `"/stocks/show/?stock.name"`, so it won't work. What you want is something like `<a href="/stocks/show/<%= stock.symbol %>">Details</a>` Of course now that we know about `link_to`, I would just use that instead.