hi, which version of xhtml (or html) do you use with rails? (1.0/1.1, strict, transitional, frame) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, you can use XHTML 1.0/1.1 or HTML 4.01. It really depends on what browsers you''ll support and it''s different for everyone. Good luck, -Conrad On 12/31/06, nick <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > hi, which version of xhtml (or html) do you use with rails? (1.0/1.1, > strict, transitional, frame) > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Nick, The use of rails doesn''t effect your doctypes. See this article for a clear explanation on the difference between strict vs. transitional doctypes and their proper uses: http://24ways.org/2005/transitional-vs-strict-markup Best, BJ Clark On 12/31/06, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi, you can use XHTML 1.0/1.1 or HTML 4.01. It really depends on what > browsers you''ll support and it''s different for everyone. > > Good luck, > > -Conrad > > On 12/31/06, nick <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > > hi, which version of xhtml (or html) do you use with rails? (1.0/1.1, > > strict, transitional, frame) > > > > -- > > Posted via http://www.ruby-forum.com/. > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Conrad Taylor wrote:> Hi, you can use XHTML 1.0/1.1 or HTML 4.01. It really depends on what > browsers you''ll support and it''s different for everyone. > > Good luck, > > -ConradIt''s a good question, i want to support many browsers as possible :) so xhtml 1.1 it''s gone because IE doesn''t support it Now is between xhtml 1.0 (served ad html...but in this case, which are the benefits to use xhtml?) or html 4.01 @BJ Clark: thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 1/1/07, nick <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Now is between xhtml 1.0 (served ad html...but in this case, which are > the benefits to use xhtml?)Use a before_filter in your application controller to set the headers correctly. Something like: def set_encoding if request.env["HTTP_ACCEPT"] && request.env["HTTP_ACCEPT"].index(''application/xhtml+xml'') headers["Content-Type"] = "application/xhtml+xml; charset=utf-8" else headers["Content-Type"] = "text/html; charset=utf-8" end end --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Isak Hansen wrote:> On 1/1/07, nick <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> Now is between xhtml 1.0 (served ad html...but in this case, which are >> the benefits to use xhtml?) > > Use a before_filter in your application controller to set the headers > correctly. > Something like: > > def set_encoding > if request.env["HTTP_ACCEPT"] && > request.env["HTTP_ACCEPT"].index(''application/xhtml+xml'') > headers["Content-Type"] = "application/xhtml+xml; charset=utf-8" > else > headers["Content-Type"] = "text/html; charset=utf-8" > end > endthanks :) I''ve also found this: http://www.7nights.com/asterisk/test/test_trans.htm http://www.7nights.com/asterisk/test/test_strict.htm with IE is ok, but wit firefox there is a little problem, so i don''t know if use strict instead of transitional :( -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---