Nishant Modak
9a497582e6
Update documentation for yml usage
...
Update documentation for yml usage against https://github.com/rails/rails/issues/8612
2012-12-30 02:33:57 +05:30
Sammy Larbi
0dad3ed4c6
Document JoinTable migration generator
2012-12-29 11:11:45 -06:00
Vijay Dev
427544ed45
Merge branch 'master' of github.com:lifo/docrails
2012-12-29 00:19:51 +05:30
Vijay Dev
8dd2c71d26
Revert "reminder to run bundle after setting up rails-dev-box"
...
This reverts commit 41381c19d1f3920ee9540aff0d35209cb43fb057.
Reason: This doesn't quite fit the flow where it's added. Let's add this
someplace else if it's explicitly required.
[ci skip]
2012-12-29 00:07:02 +05:30
Fabrizio Regini
e63b752f63
Fixed couple of typos
2012-12-27 18:11:21 +01:00
Colin Kelley
52691c369c
removed TIP: :allow_nil/:allow_blank is ignored by the presence validator
...
These tips were documenting an inconsistency issue https://github.com/rails/rails/issues/8621 . That issue is resolved by https://github.com/rails/rails/issues/8622 .
2012-12-26 17:02:54 -08:00
Steve Klabnik
d9ce4fa7ac
Note about migration timestamps.
...
We should mention that the ordering matters with regards
to timestamps, and not imply that it's just for uniqueness
purposes.
Closes #8610 .
2012-12-26 15:24:22 -05:00
Yves Senn
6c8a48e6c6
replace AS::BufferedLogger doc mentions with AS::Logger
2012-12-25 20:39:23 +01:00
Ace Suares
41381c19d1
reminder to run bundle after setting up rails-dev-box
2012-12-24 08:14:14 -04:00
Jeremy Kemper
f9da785d0b
Move background jobs to the 'jobs' branch until fully baked. Not shipping with Rails 4.0.
2012-12-21 16:29:47 -08:00
Aaron Patterson
68e91da765
Merge pull request #8267 from marcandre/reversible_drop_table_etc
...
Reversible commands
2012-12-21 13:22:52 -08:00
Gary S. Weaver
e176580e07
Updated security guide to reference secret_key_base instead of secret_token, with a little information about the change from CookieStore to EncryptedCookieStore.
2012-12-21 15:46:44 -05:00
Gary S. Weaver
d2b158465e
Updated security guide with information about secret_token.rb and to suggest securing sensitive files like database.yml and secret_token.rb
2012-12-21 14:59:09 -05:00
Marc-Andre Lafortune
a81845f268
Update Migration and 4.0 Release Guides, Changelogs [ #8267 ]
2012-12-21 13:56:16 -05:00
Vijay Dev
e0176bf732
Merge branch 'master' of github.com:lifo/docrails
2012-12-21 23:14:08 +05:30
Vijay Dev
4a8bdabc8e
copy edits in assets guide [ci skip]
2012-12-21 23:08:56 +05:30
Damian Galarza
86c5cea9f4
Explain controller specific assets more thoroughly
...
The current section on controller specific assets does not really explain how the default application.css and application.js files
generated by rails will work with controller specific assets and is a bit ambiguous. We should remind users that they will be included
into their application by default but that they have the option to include them only where needed if they want and how this works with
precompiling assets.
[ci_skip]
2012-12-17 17:01:56 -05:00
Steve Klabnik
8832313ebb
Restored 'Working with Validation Errors'
...
Somehow this got lost in my PRs before. I'm going to re-check all the
guides to make sure this didn't happen again elsewhere.
2012-12-16 11:08:13 -05:00
Vijay Dev
351f071dab
make an editing pass through the upgrading guide [ci skip]
2012-12-15 21:43:14 +05:30
Vijay Dev
5cc178a291
Merge branch 'master' of github.com:lifo/docrails
...
Conflicts:
actionpack/lib/action_view/helpers/form_helper.rb
railties/lib/rails/info_controller.rb
2012-12-15 21:20:28 +05:30
Vijay Dev
561e5ab82e
copy editing [ci skip]
2012-12-15 21:15:05 +05:30
Jay Hayes
948c1e506c
Elaborate using inverse_of
with presence validation
2012-12-13 14:04:21 -06:00
Jay Hayes
d5badea28c
Fix associations presence lost in steve's reformat
...
55a2820cc6
messes up
cfd324b4b6
Hopefully there is other stuff lost in translation...
2012-12-13 13:58:49 -06:00
Rafael Mendonça França
c5fb487965
Merge pull request #8432 from rmcastil/add_migration_example_to_each_association_type
...
Add migration examples to Association Basics
[ci skip]
2012-12-13 09:44:13 -08:00
Ryan Castillo
312234c578
Add migration example to Association Basics [ci skip]
2012-12-13 12:27:39 -05:00
Anuj Dutta
e927ba9953
Add a small note about the compressing the file, and how that helps the application.
2012-12-13 16:28:43 +00:00
Pablo Torres
dcf0b2dc5d
General refreshment of the Active Record Basics guide
2012-12-12 21:55:38 -05:00
Pablo Torres
2cdf6bda4a
Add #destroy! as a method that triggers callbacks
2012-12-12 12:01:37 -05:00
Pablo Torres
019b38999d
Remove deprecated Time methods from the guides [ci skip]
...
Don't use:
* Time.time_with_datetime_fallback
* Time.utc_time
* Time.local_time
2012-12-11 22:17:28 -05:00
George Claghorn
6e98989c95
Update guides/source/routing.md
...
It's no longer necessary to delete public/index.html for the root route to take effect.
2012-12-11 04:29:19 -05:00
Santiago Pastorino
603e7f7ea5
Merge pull request #8468 from schneems/schneems/rack-index-page
...
Use Rails to Render Default Index Page
2012-12-10 19:49:10 -08:00
schneems
baea5d69be
Use Rails to Render Default Index Page
...
This is an alternative implementation to #7771 thanks to the advice of @spastorino
Rails is a dynamic framework that serves a static index.html by default. One of my first questions ever on IRC was solved by simply deleting my public/index.html file. This file is a source of confusion when starting as it over-rides any set "root" in the routes yet it itself is not listed in the routes. By making the page dynamic by default we can eliminate this confusion.
This PR moves the static index page to an internal controller/route/view similar to `rails/info`. When someone starts a rails server, if no root is defined, this route will take over and the "dynamic" index page from rails/welcome_controller will be rendered. These routes are only added in development. If a developer defines a root in their routes, it automatically takes precedence over this route and will be rendered, with no deleting of files required.
In addition to removing this source of confusion for new devs, we can now use Rails view helpers to build and render this page. While not the primary intent, the added value of "dogfooding" should not be under-estimated.
The prior PR #7771 had push-back since it introduced developer facing files. This PR solves all of the same problems, but does not have any new developer facing files (it actually removes one).
cc/ @wsouto, @dickeyxxx, @tyre, @ryanb, @josevalim, @maxim, @subdigital, @steveklabnik
ATP Railties and Actionpack.
2012-12-10 16:15:04 -08:00
Francesco Rodriguez
c04dc674cc
remove attr_protected reference from AS Core Extensions guide [ci skip]
2012-12-10 19:08:09 -05:00
Francesco Rodriguez
1e83730067
remove Mass Assignment reference from Form Helpers guide [ci skip]
2012-12-10 19:07:25 -05:00
Francesco Rodriguez
46d63d5b20
remove Mass Assignment reference from Security Guide [ci skip]
2012-12-10 19:04:11 -05:00
Florent Guilleux
336bbb17e3
Document adding member route without the option
2012-12-10 18:47:21 -05:00
Rafael Mendonça França
9cce1ea2fd
Allow users to choose the timestamp format in the cache key
...
This can be done using the class attribute cache_timestamp_format
Conflicts:
railties/guides/source/configuring.textile
2012-12-10 17:48:26 -03:00
Steve Klabnik
d4d9e1f9bf
Add multipart: true to form for file upload.
...
I was slightly overzealous when removing this before.
Identified here: ed78770b1a
\#commitcomment-2281181
2012-12-10 11:01:43 -08:00
Andy Lindeman
5c2eb889c2
config.action_mailer.async
is no longer used
2012-12-10 13:43:29 -05:00
Vijay Dev
3c2c1a4606
revise block on kindle guides [ci skip]
2012-12-09 23:05:37 +05:30
Rafael Mendonça França
2d6b406549
Merge pull request #8469 from kytrinyx/explicit-mysql-instructions
...
Include command to create mysql user
[ci skip]
2012-12-09 08:33:17 -08:00
Katrina Owen
21d87f77f8
Include command to create mysql user
...
The guide mentions that the 'rails' user is needed, but doesn't
explicitly include the command to do so.
2012-12-09 17:24:33 +01:00
Henare Degan
0939a812a0
Globalize2 is only compatible with Rails 2 so link to Globalize3 instead
2012-12-09 23:17:33 +11:00
Steve Klabnik
07e2f0e53e
Security Guide: removing Mass Assignment.
...
Since mass assignment doesn't exist anymore, we don't need to discuss it.
I checked with @fxn last night before making this change.
2012-12-08 11:24:14 -08:00
Vijay Dev
86269b4207
Merge pull request #8348 from danchoi/master
...
Kindle ebook generation with working section navigation
2012-12-08 10:33:05 -08:00
Vijay Dev
ea86fa3e33
update release notes [ci skip]
2012-12-08 23:47:12 +05:30
Vijay Dev
0a33fcd68b
Merge branch 'master' of github.com:lifo/docrails
2012-12-08 23:11:37 +05:30
Vijay Dev
729798068a
copy edits [ci skip]
2012-12-08 23:10:38 +05:30
Vijay Dev
4085dd6010
Revert "Introduce Bundler and Gemfiles in a NOTE"
...
This reverts commit 83cb6fbd13f3c5ea3106b9a57964b1a6fb243682.
Reason: very trivial
[ci skip]
2012-12-08 23:02:52 +05:30
Steve Klabnik
aa1b9037bf
Fill out API Documentation Guidelines 'you will learn' list.
2012-12-07 23:31:17 -08:00