Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (29 sloc) 1.261 kB
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Test</title>
</head>
<body>
<%# hashes: %>
<% foo = { :bar => 'baz', :one => { :two => 'three', :four => 'five' }, :five => 'six' } %>
<% foo = { bar: 'baz', :one => { :two => 'three', :four => 'five' }, :five => 'six' } %>
<% foo = { bar: 'baz', one_two: :three } %>
<span><%= foo 1, 2, :one => 1, :two => 2, :three => 'three' %></span>
<%= link_to 'Google', 'http://google.com', :class => 'google', :id => 'google-link' %>
<%= link_to 'Google', 'http://google.com', :class => 'google', :id => 'google-link' -%>
<%= link_to 'http://google.com', :class => 'google', :id => 'google-link' do %>
<span>Google</span>
<% end %>
<%= link_to('Google', 'http://google.com', :class => 'google', :id => 'google-link') %>
<%= link_to('http://google.com', :class => 'google', :id => 'google-link') do %>
<span>Google</span>
<% end %>
<%# if/unless: %>
<%= foo unless bar? %>
<% foo = 42 if bar? %>
<%= link_to 'Google', 'http://google.com', :class => 'google' if show_google? %>
<span><%= foo if bar? %></span>
<%# html tags: %>
<div class="foo">bar</div>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.