cómo representar 404 en lugar NoMethodError en las personas # muestran errorcarriles 3 muestran 404
el código
def show
@person = Person.find(params[:id])
respond_to do |format|
format.html # show.html.erb
format.xml { render :xml => @person }
end
end
Ver: http://stackoverflow.com/questions/2385799/how-to-redirect-to-a-404-in-rails/4983354#4983354 – Kelvin