So, I have a catch all route that is going to act like a vanity url piece. So, I have a call:
def show_profile
url=VanityUrl.find_by_url!(params[:username])
...
end
I’m seeing somewhat different info for how I should be handling the ActiveRecord::NotFound error. I just want it to return a template in shared/404.html.erb
How would I do this?
You can to use in the application controller