Commit Graph

2163 Commits

Author SHA1 Message Date
Rafael Mendonça França
f484df79f2 Merge pull request #13780 from rohitpaulk/patch-1
Updated association_basics.md
2014-01-31 04:06:56 -08:00
Zachary Scott
0a4466b7e8 Document default trim mode for Erubis and affected ERB tags [ci skip]
Fixes #12963
2014-01-31 00:25:52 -08:00
Rohit Paul Kuruvilla
464d47eaaf Updated association_basics.md [ci skip]
Updated association_basics.md to include how to write migrations for self joins

Update association_basics.md

Corrected the update

Update association_basics.md

Typo fix

Changed :employee to :manager
2014-01-31 11:31:19 +05:30
Yves Senn
d4d041c1fe fix typo and indent. [ci skip] 2014-01-30 17:40:28 +01:00
Yves Senn
2d46e77f6b Merge pull request #13774 from prathamesh-sonpatki/post-to-article
Replace Post model with Article model in getting started guide [ci skip]
2014-01-30 07:27:07 -08:00
Rafael Mendonça França
fa1f20e654 Improve documentation [ci skip] 2014-01-30 10:17:48 -02:00
Rafael Mendonça França
6b16c27881 Add travel_back to remove stubs from travel and travel_to 2014-01-30 10:17:47 -02:00
Guillermo Iguaran
fd487860db Modify the session serializer implementation
Rename allowed options to :marshal and :json, for custom serializers
only allow the use of custom classes.
2014-01-30 01:53:19 -05:00
Rafael Mendonça França
bd0173574c Merge pull request #13876 from sowjumn/master
Added some style changes in asset pipeline documentation
2014-01-29 14:43:26 -08:00
Kassio Borges
42566626e9 Fix documentation of new controller filters api [ci skip]
The api for filters with classes change and the guides weren't updated.
Now the class must respond for methods with the same name as the filter,
so the `before_action` calls a `before` method, and so on.

The method `#filter` has been deprecated in 4.0.0 and has been removed
in 4.1.0: #7560
2014-01-29 18:47:08 -02:00
sowjanya
aba9fc0847 Added some style changes in asset pipeline documentation 2014-01-29 12:18:49 -08:00
Lukasz Sarnacki
b23ffd0dac Allow session serializer key in config.session_store
MessageEncryptor has :serializer option, where any serializer object can
be passed. This commit make it possible to set this serializer from configuration
level.

There are predefined serializers (:marshal_serializer, :json_serialzier)
and custom serializer can be passed as String, Symbol (camelized and
constantized in ActionDispatch::Session namepspace) or serializer object.

Default :json_serializer was also added to generators to provide secure
defalt.
2014-01-29 17:05:00 +01:00
Rafael Mendonça França
f912eed40a Merge pull request #13864 from sowjumn/master
Added documentation for css_compressor in asset_pipeline.md
2014-01-28 17:06:21 -08:00
sowjanya
fe8ffcacd6 Added documentation for css_compressor 2014-01-28 16:53:30 -08:00
Lukasz Sarnacki
69ab91ae93 Log which keys were set to nil in deep_munge
deep_munge solves CVE-2013-0155 security vulnerability, but its
behaviour is definately confuisng. This commit adds logging to deep_munge.
It logs keys for which values were set to nil.

Also mentions in guides were added.
2014-01-28 20:29:38 +01:00
Rafael Mendonça França
d57ce232a8 Merge pull request #13832 from kassio/setup-for-raise-missing-translations
Rails config for raise on missing translations
2014-01-27 10:04:26 -08:00
Yves Senn
9673d5df27 docs, remove deprecation entry in favor of abe6484. [ci skip] 2014-01-27 13:57:25 +01:00
Yves Senn
abe648452f mention #13314 in 4.1 release notes. refs #12140. [ci skip] 2014-01-27 11:23:10 +01:00
Kassio Borges
433628a45c Rails config for raise on missing translations
Add a config to setup whether raise exception for missing translation or
not.
2014-01-27 08:03:46 -02:00
Yves Senn
5540dfccd8 docs, clarify usage of action_mailer.default_options. [ci skip]. Closes #13820. 2014-01-27 08:06:26 +01:00
Francis Go
9690bcf503 Ruby on Rails 4.1 Release Notes: Fix spelling [ci skip] 2014-01-27 17:10:21 +11:00
Andrew White
e3c382e3d6 Rename subsecond_fraction_digits option to time_precision 2014-01-26 21:25:54 +00:00
Xavier Noria
e1e17a55d2 adds a section about booleans in the API guidelines [ci skip] 2014-01-26 22:10:05 +01:00
Xavier Noria
225bcadfed API guidelines: revises warning about +...+ [ci skip]
Modern RDoc accepts a few more things in +...+. In particular symbols work now.

The current regexp in RDoc is https://github.com/rdoc/rdoc/blob/v4.1.1/lib/rdoc/markup/attribute_manager.rb#L133.
2014-01-26 21:36:17 +01:00
Greg Saks
70588be101 Fix order syntax in find_by_sql example 2014-01-26 14:21:05 -05:00
Adrien Lamothe
9d0fceb55d Correct grammar from '... allowing both thread web servers ...' to '... allowing both threaded web servers ...'. 2014-01-25 23:04:36 -08:00
Prathamesh Sonpatki
08bbe5dc2e Replace Post with Article in getting started guide [ci skip]
- Used Article model instead of Post as it may confuse with 'post'
  requests
- Tried to wrap the guide to 80 chars lines as much as possible.
- Removed unused image
- Fixes #13764
2014-01-25 22:34:31 +05:30
John Olmsted & Strand McCutchen
098a960266 Reordered classes in AR Validation #validates_with example [ci skip]
Person called GoodnessValidator before it was defined.
This change will compile the example correctly.
2014-01-24 11:30:07 -08:00
Yves Senn
75cd7bc3c2 Merge pull request #13728 from semenyukdmitriy/master
Added missing `file` delivery method to the Configuration Guide
2014-01-22 01:53:30 -08:00
Semenyuk Dmitriy
9e63ead4ae [ci skip] Added missing file delivery method 2014-01-22 15:50:01 +06:00
Yves Senn
080fc9cad3 docs should say email not Email. [ci skip] 2014-01-20 15:04:36 +01:00
Yves Senn
dfac4ced1d docs, hyperlink the Mail gem in Action Mailer guide. [ci skip] 2014-01-20 14:47:40 +01:00
Yves Senn
079ffc96c1 let's link to the gem README not to the upgrading guide. [ci skip]
The PR #13767 added link to the upgrading guide to explain
details about activerecord_deprecated-finders. However the link target
features a stack of changes not releated at all. Also the relevant details
are not very informative.

I think we better link to the README so people can see what the gem is about
and how to use it.

/cc @chancancode @zzak
2014-01-20 14:06:37 +01:00
Godfrey Chan
06849fd4d0 Merge pull request #13767 from zzak/doc_4_1_release_notes_deprecated_finders
Add link to upgrade guide for full list of deprecated finders [ci skip]
2014-01-20 02:03:58 -08:00
Arel English
7f255245bd Fix a typo that says you application [ci skip] 2014-01-20 00:37:48 -05:00
Rajesh Thummalapally
610a3e8bdb Correcting link that is pointing to Rails blog [ci skip] 2014-01-19 23:47:48 -05:00
Zachary Scott
9040e04c72 Add link to upgrade guide for full list of deprecated finders [ci skip] 2014-01-19 18:43:51 -08:00
Rashmi Yadav
b20d4453dd Spring in now under rails/spring [ci skip] 2014-01-19 10:52:49 +01:00
Charlie Jade
bf89bfdc34 Correct the version number to 4 in guides[ci skip] 2014-01-18 12:14:21 +08:00
Rafael Mendonça França
7252b43c6e Only some dynamic finders are deprecated.
find_by_* and find_by_*! are not deprecated for example, so lets add a
note only where it is needed

[ci skip]
2014-01-16 22:12:37 -02:00
Rex Feng
beeb8969e0 clean up security guide: his => their [ci skip] 2014-01-16 18:57:21 -05:00
Chulki Lee
1ab6c656d6 Use single quotes in generated files 2014-01-14 11:13:42 -08:00
Carlos Antonio da Silva
028029c1b6 Merge pull request #13705 from mess110/controller_generator_route_quotes
Single quotes for controller generated routes. This is more consistent with all other Rails generated code.
2014-01-14 02:13:28 -08:00
Yves Senn
c2a6fc42d2 Merge pull request #13706 from prathamesh-sonpatki/issue-13125
Fix fields_for documentation with index option [ci skip]
2014-01-14 01:16:34 -08:00
Prathamesh Sonpatki
3cf5d2b75b Fix fields_for documentation with index option [ci skip]
- fields_for documentation with index option was wrong.
- It does not work with passing model as it is.
- Changed the example by passing id of the address object.
- Fixes #13125.
2014-01-14 14:38:07 +05:30
Cristian Mircea Messel
9cdc7c0614 single quotes for controller generated routes
Write routes in route.rb with single quotes

    get 'welcome/index'

instead of

    get "welcome/index"
2014-01-14 09:31:51 +02:00
Uday Kadaboina
ad04c2e0b5 [ci skip] Added alias to CSRF 2014-01-14 01:31:23 -05:00
Xavier Noria
e992cd4d91 updates screenshot data [ci skip] 2014-01-13 23:32:04 +01:00
Xavier Noria
7524a9166c revises a few things in the getting started guide [ci skip]
More to come.
2014-01-13 23:11:44 +01:00
Rystraum Gamonez
25a9623422 Updated Changelog to reflect removal of :dependent => :restrict
Based on https://github.com/rails/rails/issues/2502, the option has
been removed.
2014-01-14 01:29:26 +08:00