URL-.
config/initializers/mime_types.rb:
Mime::Type.register_alias 'text/html', :xhtml
some_controller/some_action.xhml.haml.
URL:
http://mydomain.com/some_controller/some_action.xhtml, , ,
url_for(:controller => :some_controller, :action => :some_action, :format => :xhtml)
, , ( ):
some_controller_some_action_imaginary_path(:format => :xhtml)
, respond_to .
, , , - , ajax- , , , .
EDIT:
jQuery 1.5.1 mime $.ajax():
mimeType : mime type to override XMR tim.
This may be an alternative to the explicit format in the urls, although I have not tried it yet.
source
share