Thanks to both of you for your responses.
Receipts Tracking System
Library powered by Ruby on Rails
<div id="content">
<%= yield -%>
</div>
<div id="sidebar"></div>
[snip]
app\views\layouts\expenses.html.erb:
<%= flash[:notice] %>
<table width="100%">
<%= yield %>
<%= yield :sidebar %>
[snip]
app\views\expenses\new.html.erb (at the bottom):
<% content_for :sidebar do %>
This is my sidebar stuff from:
new.html.erb
RTS\app\views\expenses
<% end %>
This doesn’t appear to be a rails issue at all [Colin}:
I opened Firebug when “New Expenses”, the offending page, was being
displayed in Firefox.
Fiirebug referenced Scaffold.css 3 times. But style.css wsas never
mentioned, which is where the following definition is given:
div#sidebar {
width: 200px;
margin-left: 480px;
background-color: #00FFFF;
}
Does that point to an error in my code?
Regards,
Richard
The gory details from Firebug follow:
In the left-hand pane:
body
div (not expanded)
link (")
table
tbody
tr
td (My page’s left side, not expanded)
td (My page’s right side = “sidebar”, not expanded)
/tr
/tbody
/table
div id = divCleekiAttrib (other stuff)
/div
/body
Except for the last div, that structure matches my expenses,html.erb:
<%= flash[:notice] %>
<table width="100%">
<tr>
<td> <%= yield %> </td>
<td> <%= yield :sidebar %> </td>
</tr>
</table>
So far, so good.
But with the focus on the 2nd td in the left-hand pane,
the right-hand pane shows two items:
First:
body, p, ol, ul, td { [scaffo…6718330 (line 3)]
font-family:verdana,arial,helvetica,sans-serif;
font-size:13px;
line-height:18px;
}
Second (two “body” items “inherited from body”):: [scaffo…6718330
(line 3)]
body, p, ol, ul, td {
font-family:verdana,arial,helvetica,sans-serif; [crossed out]
font-size:13px; [crossed out]
line-height:18px; [crossed out]
}
body { [scaffo…6718330 (line 1)]
color:#333333;
}