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

&#x2318;

control

&#x2303;

delete

&#x2326;

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

&#x2193;

enter

&#x2305;

erb

<%= ${paste} %>

escape

&#x238B;

form

<form action="${action}" method="${get}" accept-charset="utf-8">
	${cursor}

	<p><input type="submit" value="Continue &rarr;"></p>
</form>

ft

<%= form_tag :action => "${update}" %>

h1

<h1 id="${name}">${paste}</h1>
<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

&#x2190;

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 rel="${stylesheet}" href="${master}" type="text/css" media="${screen}" title="${title}" charset="${utf}"${TM_XHTML}>

mailto

<a href="mailto${email}?subject=${feedback}">${email}</a>

meta

<meta name="${name}" content="${content}"${TM_XHTML}>

movie

<object width="${320}" height="${240}" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
	<param name="src" value="${movie}">
	<param name="controller" value="${true}">
	<param name="autoplay" value="${false}">
	<embed src="${movie}"
		width="${320}" height="${240}"
		controller="${true}" autoplay="${false}"
		scale="tofit" cache="true"
		pluginspage="http://www.apple.com/quicktime/download/"
	>
</object>

nbsp

&nbsp;

option

&#x2325;

return

&#x21A9;
&#x2192;

rp

<%= render :partial => "${item}" %>

rpc

<%= render :partial => "${item}", :collection => ${items} %>

rpl

<%= render :partial => "${item}", :locals => { :${name} => ${value} } %>

rpo

<%= 	render :partial => "${item}", :object => ${object} %>

rps

<%= render :partial => "${item}", :status => ${500} %>

script

<script type="text/javascript" charset="utf-8">
	${cursor}
</script>

scriptsrc

<script src="${url}" type="text/javascript" charset="${utf}"></script>

shift

&#x21E7;

style

<style type="text/css" media="${screen}">
	${cursor}
</style>

tab

&#x21E5;

table

<table border="${0}" cellpadding="${0}">
	<tr><th>${Header}</th></tr>
	<tr><td>${Data}</td></tr>
</table>

textarea

<textarea name="${name}" rows="${8}" cols="${40}">${cursor}</textarea>

title

<title>${title}</title>

up

&#x2191;