1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Tiny documentation edits [ci skip]

This commit is contained in:
Robin Dupret 2015-07-28 12:25:39 +02:00
parent 6f4421e4d9
commit e18bf1dc49
3 changed files with 8 additions and 6 deletions

View file

@ -201,7 +201,7 @@ module ActionDispatch # :nodoc:
# it sets the charset to utf-8. # it sets the charset to utf-8.
# #
# response.charset = 'utf-16' # => 'utf-16' # response.charset = 'utf-16' # => 'utf-16'
# response.charset = nil # => 'utf-8' # response.charset = nil # => 'utf-8'
def charset=(charset) def charset=(charset)
@charset = charset.nil? ? self.class.default_charset : charset @charset = charset.nil? ? self.class.default_charset : charset
end end

View file

@ -81,7 +81,7 @@ class BigDecimal
# BigDecimals are duplicable: # BigDecimals are duplicable:
# #
# BigDecimal.new("1.2").duplicable? # => true # BigDecimal.new("1.2").duplicable? # => true
# BigDecimal.new("1.2").dup # => #<BigDecimal:7f9d698eee10,'0.12E1',18(18)> # BigDecimal.new("1.2").dup # => #<BigDecimal:...,'0.12E1',18(18)>
def duplicable? def duplicable?
true true
end end

View file

@ -23,10 +23,12 @@ application from scratch. It does not assume that you have any prior experience
with Rails. However, to get the most out of it, you need to have some with Rails. However, to get the most out of it, you need to have some
prerequisites installed: prerequisites installed:
* The [Ruby](https://www.ruby-lang.org/en/downloads) language version 2.2.2 or newer. * The [Ruby](https://www.ruby-lang.org/en/downloads) language version 2.2.2 or newer.
* Right version of [Development Kit](http://rubyinstaller.org/downloads/), if you are using Windows * Right version of [Development Kit](http://rubyinstaller.org/downloads/), if you
* The [RubyGems](https://rubygems.org) packaging system, which is installed with Ruby are using Windows.
versions 1.9 and later. To learn more about RubyGems, please read the [RubyGems Guides](http://guides.rubygems.org). * The [RubyGems](https://rubygems.org) packaging system, which is installed with
Ruby by default. To learn more about RubyGems, please read the
[RubyGems Guides](http://guides.rubygems.org).
* A working installation of the [SQLite3 Database](https://www.sqlite.org). * A working installation of the [SQLite3 Database](https://www.sqlite.org).
Rails is a web application framework running on the Ruby programming language. Rails is a web application framework running on the Ruby programming language.