1 karma · joined Jun 3, 2013 (13y ago) · 2 submissions
comment 13y ago · link · parent
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?')