I'm new to rails and am learning my way by putting together a simple
I'm pulling items out of the params by using find(params['id']) and
showing results in a show view.
Things are going along nicely until I enter an ID into the address bar
that does not exist. Then the whole thing blows up and I get ACTIVE
RECORD::RECORD NOT FOUND IN PUBLIC CONTROLLER#SHOW along with
"couldn't find item with ID = 100" .
This is my show view code:-
Id: <%= @album.id %><br/>
Title: <%= @album.title %><br/>
Artist: <%= @album.artist%><br/>
Genre: <%= @album.genre %><br/>
<% end -%><br/>
Can anyone please tell me how to fix this problem ?
Would really appreciate any help.