-- RadRails RHTML Cheat Sheet --
arrow
→
backspace
⌫
backtab
⇤
base
<base href="${href}"${target}>
body
<body>
${cursor}
</body>
bodyo
<body onload="${onload}; return false">
${cursor}
</body>
br
<br />
command
⌘
control
⌃
delete
⌦
div
<${div} id="${name}" class="${classes}">
${paste}
</${div}>
doctype
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
doctype
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
doctype
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
doctype
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
doctype
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
doctype
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
down
↓
enter
⌅
erb
<%= ${paste} %>
escape
⎋
form
<form action="${action}" method="${get}" accept-charset="utf-8">
${cursor}
<p><input type="submit" value="Continue →"></p>
</form>
ft
<%= form_tag :action => "${update}" %>
h1
<h1 id="${name}">${paste}</h1>
head
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>${title}</title>
${cursor}
</head>
input
<input type="${button}" name="${some_name}" value="${3}"${id}>
left
←
lia
<%= link_to "${text}", :action => "${index}" %>
liai
<%= link_to "${text}", :action => "${edit}", :id => ${item} %>
lic
<%= link_to "${text}", :controller => "${items}" %>
lica
<%= link_to "${text}", :controller => "${items}", :action => "${index}" %>
licai
<%= link_to "${text}", :controller => "${items}", :action => "${edit}", :id =>
${item} %>
link
<link rel="${stylesheet}" href="${master}" type="text/css" media="${screen}"
title="${title}" charset="${utf}"${TM_XHTML}>