- 06 1月, 2012 1 次提交
-
-
由 Karunakar (Ruby) 提交于
minor
-
- 10 6月, 2011 1 次提交
-
-
由 Neeraj Singh 提交于
-
- 13 4月, 2011 1 次提交
-
-
由 Xavier Noria 提交于
-
- 10 10月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 04 3月, 2010 1 次提交
-
-
由 Carl Lerche 提交于
-
- 20 9月, 2009 1 次提交
-
-
由 Joshua Peek 提交于
-
- 16 8月, 2009 1 次提交
-
-
由 Yehuda Katz 提交于
* request.formats is much simpler now * For XHRs or Accept headers with a single item, we use the Accept header * For other requests, we use params[:format] or fallback to HTML * This is primarily to work around the fact that browsers provide completely broken Accept headers, so we have to whitelist the few cases we can specifically isolate and treat other requests as coming from the browser * For APIs, we can support single-item Accept headers, which disambiguates from the browsers * Requests to an action that only has an XML template from the browser will no longer find the template. This worked previously because most browsers provide a catch-all */*, but this was mostly accidental behavior. If you want to serve XML, either use the :xml format in links, or explicitly specify the XML template: render "template.xml".
-
- 16 6月, 2009 1 次提交
-
-
- 22 5月, 2009 1 次提交
-
-
- 02 5月, 2009 1 次提交
-
-
- 09 4月, 2009 1 次提交
-
-
- 09 1月, 2009 1 次提交
-
-
由 Jeremy Kemper 提交于
Include process methods in ActionController::TestCase only. No need to alias_method_chain :process either.
-
- 08 1月, 2009 1 次提交
-
-
由 Jeremy Kemper 提交于
Include process methods in ActionController::TestCase only. No need to alias_method_chain :process either.
-
- 22 8月, 2008 1 次提交
-
-
由 Jeremy Kemper 提交于
-
- 08 8月, 2008 1 次提交
-
-
由 Jeremy Kemper 提交于
-
- 13 7月, 2008 1 次提交
-
-
由 Joshua Peek 提交于
-
- 10 7月, 2008 1 次提交
-
-
由 Jeremy Kemper 提交于
-
- 07 7月, 2008 1 次提交
-
-
由 Michael Koziarski 提交于
The accept header is poorly implemented by browsers and causes strange errors when used on public sites where crawlers make requests too. You should use formatted urls (e.g. /people/1.xml) to support API clients. Alternatively to re-enable it you need to set: config.action_controller.use_accept_header = true A special case remains for ajax requests which will have a javascript format for the base resource (/people/1) if the X-Requested-With header is present. This lets ajax pages still use format.js despite there being no params[:format]
-
- 26 6月, 2008 1 次提交
-
-
由 Joshua Peek 提交于
-
- 05 1月, 2008 1 次提交
-
-
由 Jeremy Kemper 提交于
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8564 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 05 2月, 2007 1 次提交
-
-
由 Rick Olson 提交于
Allow Controllers to have multiple view_paths instead of a single template_root. Closes #2754 [John Long] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6120 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 19 9月, 2006 1 次提交
-
-
由 Rick Olson 提交于
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5143 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 18 9月, 2006 2 次提交
-
-
由 David Heinemeier Hansson 提交于
Added that respond_to blocks will automatically set the content type to be the same as is requested [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5131 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
由 David Heinemeier Hansson 提交于
Added proper getters and setters for content type and charset [DHH] Added utf-8 as the default charset for all renders. You can change this default using ActionController::Base.default_charset=(encoding) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5129 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-