Answer the question
In order to leave comments, you need to log in
[Rails] How to throw 404 error in 3rd level domains?
Good afternoon.
Made support for 3rd level domains according to the lesson railscasts.com/episodes/221 . But how to do that if the 3rd level domain ceased to exist, then a 404 error was shown? Now it shows 422, due to a logical error.
Answer the question
In order to leave comments, you need to log in
$(document).ready(function(){
$(".panda-filter-params-group").click(function(){
$(".panda-filter-params-group li").toggleClass("name");
});
});
Make a before filter in the right places that will check for the presence of the site
def check_site
if !current_site
redirect_to("http://#{root_cms_url}/404.html")
return false
end
end
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question