Hi Bill, nice to hear from you again…
If you’re generating scaffold code, you’ll find the stylesheet linked by
name in your layout file.
Yes, I generated scaffold code. I have an app, contact, based on the
“Fast-track your Web apps with Ruby on Rails” by David Mertz IBM
article.
I have modified the stylesheet from
/public/stylesheets/, even removed it.
All to no avail.
There is no effect on rendering no matter what I do with the
/views/layouts/contacts.rhtml file
Viz below: no style argument:
Contacts: <%= controller.action_name %>
<%= flash[:notice] %>
<%= @content_for_layout %>
Nevertheless, the following is rendered into the /contact/ request
result:
…
Scaffolding
body { background-color: #fff; color: #333; }
body, p, ol, ul, td {
font-family: verdana, arial, helvetica, sans-serif;
font-size: 13px;
line-height: 18px;
}
…
What exactly do you mean “to no avail”? If you’ve deleted all the
stylesheets in /public/stylesheets, what is it you’re seeing that makes
you
sure any style is being applied?
There is no affect on the rendering style, no matter what I do. I also
placed my own css code into the default style sheet (contact.css) and it
had no affect on the rendering.
By removing the … code from between the tags in
the generated html page, and viewing in browser, it renders with default
browser style (no css style) and the difference is obvious.
The inline … code is still
being included from somwhere.
What do you mean by “inline”? If, in fact, you’ve got tags in
your
code, that styling will over-ride any external stylesheet as it’s
supposed
to according to the W3C standard.
That is correct and what I would expect. That’s why I am flamoozled in
trying to figure out where/how this … code
is inserted into the request result, since I want to modify it, and when
I make the modifications they have no effect. The ‘original’ style code
continues to render into the head section, overriding any possible
changes I make in the ‘global’ css, or even deleting it. And not
referencing it in the layout.
Hope this clarifies the issue!
regards,
Steve