An easy way to do JavaScript - CoffeeScript presentation
A short introduction to new great tool which is CoffeeScript.
A short introduction to new great tool which is CoffeeScript.
This is how my irbrc file looks like:
if ENV.include?('RAILS_ENV') && !Object.const_defined?('RAILS_DEFAULT_LOGGER')
require 'logger'
RAILS_DEFAULT_LOGGER = Logger.new(STDOUT)
end
require 'rubygems'
require 'wirble'
require 'interactive_editor'
ActiveRecord::Base.logger = Logger.new(STDOUT) if Object.const_defined?('ActiveRecord')
Wirble.init
Wirble.colorize
>> SomeModel.connection.select_values SomeModel.send(:construct_finder_sql, :select =>:id, :limit => 20)
=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
Cute little plugin to emulate ruby’s method missing in JavaScript by Pat Nakajima