This magic comment is necessary for Ruby to switch to UTF-8 encoding.
Render 404 page in case of ActiveRecord::RecordNotFound

why doesn't this happen automatically?
Refactored not_found page
Custom/Alias urls