262 | Chapter 8: i18n and L10n
Complete the first iteration with a very simple XHTML layout and stylesheet:
app/views/layouts/people.html.erb
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%= stylesheet_link_tag 'default' %>
<%= yield %>
public/stylesheets/default.css
body {
font-family: sans-serif;
}
form label {
display: block;
float: left;
width: 130px;
text-align: right;
padding: 3px 5px;
}
Although this application leaves out many features that you would want in a real
address book, it will serve our purposes to demonstrate localization with Globalize.
The basic English-only interface is shown in Figures 8-3 through 8-6; the user can
create and view address book entries.
Figure 8-3. Blank state of an empty address book