Andy Churchstone
2006-Jun-17 19:28 UTC
[Rails] Easy way to show the HTTP status (e.g. 301/404 etc)
Hi, Being new to rails, I''d like to put something at the bottom of my global application layout so that it displays the response code that would be delivered by the webserver in a live environment. Being inexperienced, I am cautious about being SEO-friendly and would feel more comfortable knowning what codes are being sent for each page. I figure something at the bottom of the global layout of every page e.g. HTTP 404, would be easy to remove at the end. Is there a quick line I can add? I''ve seen things like headers["Code"] and stuff, but I''m getting a bit confused as to whether it would be useful here where I just want to display rather than force an actual value. Thanks, Andy. -- Posted via http://www.ruby-forum.com/.
Reasonably Related Threads
- Parallelizing Other Apply Functions, e.g. by, the Easy (Wrong?) Way
- Contact Needed... / http://www.samba.anu.edu.au
- Shocking Easy Google First Page RankingUsing The Backlink Syndication! Up To 250k+ Unstoppable, Uncontrollable! The Secrets Revealed!"
- Recommendations for Apache 2 with mod_fcgid
- anyone able to explain logic behind "rake spec" startup (e.g. db:test:prepare => abort_if_pending_migration => invoke environment => etc etc)