On Tue, Sep 23, 2008 at 6:13 AM, Sijo Kg
<[EMAIL PROTECTED]>wrote:

>    I could solve the problem by just rearranged format.html first and
> then format.js.. But still my doubt remains. Was that created the
> problem ?Is it a must to write format.html first?


Yes, format.html must be first.  The reason is that Rails uses the HTTP
"Accepts" header to determine the content type that the browser is asking
for.  Along with reasonable things like "text/html", IE6 includes "*/*",
telling Rails that it will take anything.  Rails will server up the first
response format that matches, so it'll give the first one.

Gross, isn't it?  Imagine the day when we won't have to worry about IE6.
*seeing visions of sitting in a hammock on the ocean*

Brandon

-- 
--------------------------------------------------------------------------------
Sessions by Collective Idea: Ruby on Rails training in a vacation setting
http://sessions.collectiveidea.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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to