Rails – dump an existing database schema so it can be rebuilt easily

One of my gripes (or possibly misunderstandings) with Rails is that you have to make the schema within Rails. I find that difficult – I want to plan it externally, create the schema, and then use it in my app. Perhaps there is an easier way to accomplish that, but here’s what I do.

Continue reading Rails – dump an existing database schema so it can be rebuilt easily

Rails Quick Tip: Show Detailed Errors in Production

OK, before you go yell at me, I know enabling detailed error messages on a production web application is a Bad Thing™. The security guy in me hates finding a production application that spews back all kinds of details to a user when something goes wrong, and I’ve had many a developer disable detailed error messages on their production applications.

Continue reading Rails Quick Tip: Show Detailed Errors in Production