The code executes different method according to the environment, in Rails. In this way, you can show message only in development environment.
I wrote the script to deploy application controlled by Git.
I wrote the way to build structured layout in Rails.
You can use it when you want to use the same frame according to the page URLs. For example, to show control bar in admin pages.
Here’s the way I execute rake command in OpenShift server in.