mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
3cb26e9cb3
Branch to have scaffold use new render methods r2496@sedna: jeremy | 2005-05-28 10:50:51 -0700 axe unused process_request method r2497@sedna: jeremy | 2005-05-28 10:51:58 -0700 sanity assertions in process method check that @controller, @request, @response are set r2498@sedna: jeremy | 2005-05-28 10:53:42 -0700 clean up escaping. use instance_variable_get instead of instance_eval. put id in form action instead of hidden input (like the generated scaffolding) r2499@sedna: jeremy | 2005-05-28 10:54:46 -0700 clean up interpolation, remove tabs from stylesheet r2500@sedna: jeremy | 2005-05-28 10:56:40 -0700 modernize dynamic scaffolding. use params[:id] instead of @params[id]. use consolidated render method instead of render_action, render_file, etc. use builtin inflections rather than module methods. r2501@sedna: jeremy | 2005-05-28 11:00:26 -0700 modernize generated scaffolding. use new-style assertions; use params[:id] instead of @params[id]; use consolidated render method instead of render_* r2542@sedna: jeremy | 2005-06-12 02:24:06 -0700 use :id => model instead of :id => model.id. clean up the form helper method. use flash[:notice] instead of flash['notice']. r2543@sedna: jeremy | 2005-06-12 02:33:22 -0700 whitespace r2544@sedna: jeremy | 2005-06-12 02:56:57 -0700 update changelogs r2545@sedna: jeremy | 2005-06-12 03:26:23 -0700 test dynamic form help when @post is not a new record r2546@sedna: jeremy | 2005-06-12 03:44:14 -0700 touch up TestCase#process sanity assertions git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1404 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
67 lines
1.2 KiB
Text
67 lines
1.2 KiB
Text
<html>
|
|
<head>
|
|
<title>Scaffolding</title>
|
|
<style>
|
|
body { background-color: #fff; color: #333; }
|
|
|
|
body, p, ol, ul, td {
|
|
font-family: verdana, arial, helvetica, sans-serif;
|
|
font-size: 13px;
|
|
line-height: 18px;
|
|
}
|
|
|
|
pre {
|
|
background-color: #eee;
|
|
padding: 10px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
a { color: #000; }
|
|
a:visited { color: #666; }
|
|
a:hover { color: #fff; background-color:#000; }
|
|
|
|
.fieldWithErrors {
|
|
padding: 2px;
|
|
background-color: red;
|
|
display: table;
|
|
}
|
|
|
|
#ErrorExplanation {
|
|
width: 400px;
|
|
border: 2px solid 'red';
|
|
padding: 7px;
|
|
padding-bottom: 12px;
|
|
margin-bottom: 20px;
|
|
background-color: #f0f0f0;
|
|
}
|
|
|
|
#ErrorExplanation h2 {
|
|
text-align: left;
|
|
font-weight: bold;
|
|
padding: 5px 5px 5px 15px;
|
|
font-size: 12px;
|
|
margin: -7px;
|
|
background-color: #c00;
|
|
color: #fff;
|
|
}
|
|
|
|
#ErrorExplanation p {
|
|
color: #333;
|
|
margin-bottom: 0;
|
|
padding: 5px;
|
|
}
|
|
|
|
#ErrorExplanation ul li {
|
|
font-size: 12px;
|
|
list-style: square;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<p style="color: green"><%= flash[:notice] %></p>
|
|
|
|
<%= @content_for_layout %>
|
|
|
|
</body>
|
|
</html>
|