class ContentController < ApplicationController
def error_pages
render_optional_error_file(params[:id])
end
endAnd then in my routes:
map.connect '/error_pages/:id', :controller => 'content', :action => 'error_pages' if ENV['RAILS_ENV'] == 'development'So I can access it with:
http://localhost:3000/error_pages/404
http://localhost:3000/error_pages/500Does anyone know another solution? =)



0 comentários:
Postar um comentário