Better HN
topnewbestaskshowjobs
Log inSign up

txrx

1 karma · joined Jun 3, 2013 (13y ago) · 2 submissions

Submissions

comment 13y ago · link · parent

local scope is now fixed.

comment 13y ago · link · parent

couple of tips:

jquery's $() is aliased to j() in ruby. Try:

j('body').css background: 'pink'

window is alias to w(). E.g.:

w.alert('hello from ruby')

puts w.prompt('saywhat?')