Add helper methods to your Rails console
If you use the console on your production application with any regularity, then having helpers for your application is a must!
If you use the console on your production application with any regularity, then having helpers for your application is a must!
I got tired of @page_title variables being sprinkled around in controllers and views on Speaker Deck, so I made good use of Rails’ I18n API to define them all in one spot. Here’s how I did it…
I am Brandon Keepers. I build Internet things, usually with Ruby or JavaScript. I work at GitHub and live in Holland, MI.