ram.on :rails

RSS

setup timezone for rails app & server

execute filtered cucumber features

This script will execute only selective feature files

cukename abc
  • recursively find all files having “abc” in their names
  • execute them with cucumber as one batch
  • show the list of files before executing them

Sep 6

Colorize ruby output

Sep 5
So, I can solve a Rubik Cube. :) Always wanted to do that.
The Web can be a nice place to learn.

So, I can solve a Rubik Cube. :) Always wanted to do that.

The Web can be a nice place to learn.

Linux command line output within textmate
Write the command you wish to run in terminal
Select the command
Press Control-Option-R
Command (selected) text gets replaced with the output

Linux command line output within textmate

  1. Write the command you wish to run in terminal
  2. Select the command
  3. Press Control-Option-R
  4. Command (selected) text gets replaced with the output

ruby shorthand for creating dynamic symbol

A shorthand for creating symbols dynamically in ruby

» (1..5).collect {|e| :”sym_#{e}” } # instead of “sym_#{e}”.to_sym

=> [:sym_1, :sym_2, :sym_3, :sym_4, :sym_5]

:sym_1 == :”sym_1” == “sym_1”.to_sym

Jul 8

split a phrase into words.strip

Jul 6

Cool Helpers for rails apps

Jul 2

Parsing integer ranges from a string

This is similar to the text box that defines page ranges to be printed (in a standard print dialog box)

Example: “1-3, 5, 9-11” => [1, 2, 3, 5, 9, 10, 11]

Jun 9

Awesome search in Textmate, before-you-can-blink-an-eye

I have been using “Grep in TextMate” so far to speed up full text searching in TextMate.

AckMate comes to rescue! Good job!