aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/mime_types.rb
Commit message (Collapse)AuthorAgeFilesLines
* Added application/jsonrequest as a synonym for application/jsonMike Subelsky2008-07-021-1/+2
| | | | [#536 state:resolved]
* change ActionController::RequestForgeryProtection to use ↵rick2008-05-061-1/+1
| | | | Mime::Type#verify_request? [#73]
* Add multipart and url-encoded form mime types.Jeremy Kemper2007-05-151-0/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6744 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* documentation project patches, closes #7342, #7319, #7316, #7190 ↵Rick Olson2007-03-271-0/+3
| | | | | | [jeremymcanally] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6470 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added default mime type for CSS (Mime::CSS) [DHH]David Heinemeier Hansson2007-02-181-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Recognize the .txt extension as Mime::TEXT [Rick]Rick Olson2007-01-121-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5912 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More thorough JSON tests. Use application/json by default, per rfc4627. ↵Jeremy Kemper2006-12-061-2/+4
| | | | | | References #4185. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5695 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* respond_to recognizes JSON. render :json => @person.to_json automatically ↵Jeremy Kemper2006-12-061-0/+1
| | | | | | sets the content type and takes a :callback option to specify a client-side function to call using the rendered JSON as an argument. References #4185. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5694 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added the option for extension aliases to mime type registration [DHH] ↵David Heinemeier Hansson2006-12-021-0/+10
Refactored default mime types to use the extension framework instead of just declaring themselves verbosely git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5663 5ecf4fe2-1ee6-0310-87b1-e25e094e27de