Using a combination of resources I use this shell script to compile an incremented tag release of a Rails app. […]
Tag: #rails
Configuring Vagrant & Chef cookbooks, the right-way
Setup: – If you don’t know what Vagrant is, look at the footnotes. 0 – Install the recent vagrant version […]
Loading Javascript document on load when using Turbolinks
function initialize() { alert(‘Welcome, Deputy! Check back often for new zombie sightings!’); } $(document).ready(initialize); $(document).on(‘page:load’, initialize);
Getting into Ruby on Rails?
Just getting into rails? There are quite a few resources and tutorials out there. From personal experience I suggest the […]
Find naughty naughty model calls in your views
I found this really helpful in a project where almost all the views were requesting things from the database rather […]
Manage multiple AWS accounts with CLI (eb for Elastic Beanstalk)
If you want to be able to push to different accounts in AWS there is a simple way. First of […]
Open last generated migration easily in your editor
Sometimes when generating a migration we need to look for it on the db folder and autocompleting the migration name. […]
Handling Large Javascript Files With Turbolinks
Despite being released almost 2 years ago, and being automatically included with Rails since 4.0.0, Turbolinks still seems to cause […]
Initjs: Provides a great javascript structure for your application
Init.js is a Ruby Gem that helps run your javascript only in a page that its necessary. Along with Rails, […]
Eliminate javascript debug code after assets compiling (Rails 4 only)
Uglifier is able to eliminate unreachable code, so we can get rid of any ‘console.log’ lines after assets compiling. app/assets/javascripts/application.js: […]
Run your Rails tests from vim to spin
After seeing the blog post of Vladimir Saric titled Streamlining vim with RSpec and Cucumber I add some changes to […]
Make Rails ExecJS recognize nodejs
So your ExecJS can’t recognize node setup. This is fairly simple, but sometimes tricky to detect problem. Running a rails […]
Markdown Preview using ruby and sinatra simple script
every time i write markdown in my readme file i have to write something wrong, so i wrote this script […]
Pass the database pwd to Rails with an environment variable
Storing your database password in database.yml is bad for several reasons. Let’s pass it to Rails through an environment variable […]
Set up Rails dev env in OS 10.8 Mountain Lion
1- Install Command Line Tools: https://developer.apple.com/downloads/index.action (Thanks @davefp for this tip!) 2- Install HomeBrew: http://mxcl.github.io/homebrew/ 3- Install Git: brew install […]
ctags in Rails project
If you’re like me, then you program Rails and you use ctags to navigate your project. But, you don’t want […]
Extended Paul Irish’s DOM-based Routing for CoffeeScript
Have you heard about Paul Irish’s “Markup-based unobtrusive comprehensive DOM-ready execution”?. It was written back in the day when client-side […]
Flight & Apotomo
I love Ember.js. Javascript frameworks like this can be very useful, but sometimes they can overcomplicate a project and cause […]
How to setup rails app on a mediatemple (dv)
Setting up your first rails app on a mediatemple (dv) was a very daunting task for me, but i’ve done […]
Node for Rails developers: using Compound.js
Ruby on Rails developers turning to Node.js may find a soft landing with Compound.js and CoffeeScript There’s no need to […]