fixes show.erb and routes.rb to not use javascript method