DOCTYPE declaration:

I am playing around with the Agile Rails development book again and
thought to see what effect, if any, placing a doctype declaration
at the top of an rhtml file would have. When I insert any of the
three standard forms of such declaration at the top of
app/views/store.rhtml the product image disappears when the web
page is redisplayed. The error logged in log/development.log is:

ActionController::RoutingError (Recognition failed for
ler/routing.rb:469:in `recognition_failed’

As I have very limited experience with css and xml and even less
with Ruby or Rails I would appreciate it very much if someone here
could explain to me what is happening. The three forms that I have
tried are:



*** e-mail is not a secure channel ***
James B. Byrne Harte & Lyne Limited
vox: +1 905 561 1241 9 Brockley Drive
fax: +1 905 561 0757 Hamilton, Ontario
= hal Canada L8E 3C3

Without answering your question, I will point out that a valid doctype
have the namespace url for the browsers to apply it. That’s been my
experience with IE at least. Unless you are coding strict xhtml, use the
xhtml transitional doctype.

For more on DOCTYPEs read A List Aparts Intro:


Bob S.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs