mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
ruby -> Ruby
This commit is contained in:
parent
947cc874be
commit
60a961f3b6
3 changed files with 3 additions and 3 deletions
|
@ -342,7 +342,7 @@ Helpers that do something else, like `cache` or `content_for`, are not affected
|
|||
* Helpers now output HTML 5 by default.
|
||||
* Form label helper now pulls values from I18n with a single value, so `f.label :name` will pull the `:name` translation.
|
||||
* I18n select label on should now be :en.helpers.select instead of :en.support.select.
|
||||
* You no longer need to place a minus sign at the end of a ruby interpolation inside an ERB template to remove the trailing carriage return in the HTML output.
|
||||
* You no longer need to place a minus sign at the end of a Ruby interpolation inside an ERB template to remove the trailing carriage return in the HTML output.
|
||||
* Added `grouped_collection_select` helper to Action View.
|
||||
* `content_for?` has been added allowing you to check for the existence of content in a view before rendering.
|
||||
* passing `:value => nil` to form helpers will set the field's `value` attribute to nil as opposed to using the default value
|
||||
|
|
|
@ -166,7 +166,7 @@ NOTE: Defined in `active_support/core_ext/object/duplicable.rb`.
|
|||
|
||||
### `deep_dup`
|
||||
|
||||
The `deep_dup` method returns deep copy of a given object. Normally, when you `dup` an object that contains other objects, ruby does not `dup` them, so it creates a shallow copy of the object. If you have an array with a string, for example, it will look like this:
|
||||
The `deep_dup` method returns deep copy of a given object. Normally, when you `dup` an object that contains other objects, Ruby does not `dup` them, so it creates a shallow copy of the object. If you have an array with a string, for example, it will look like this:
|
||||
|
||||
```ruby
|
||||
array = ['string']
|
||||
|
|
|
@ -857,7 +857,7 @@ resources :user_permissions, controller: 'admin/user_permissions'
|
|||
This will route to the `Admin::UserPermissions` controller.
|
||||
|
||||
NOTE: Only the directory notation is supported. Specifying the
|
||||
controller with ruby constant notation (eg. `:controller =>
|
||||
controller with Ruby constant notation (eg. `:controller =>
|
||||
'Admin::UserPermissions'`) can lead to routing problems and results in
|
||||
a warning.
|
||||
|
||||
|
|
Loading…
Reference in a new issue