Commit Graph

2633 Commits

Author SHA1 Message Date
yuuji.yaginuma
784f2c5b31 [ci skip] Fix broken url in plugins guide 2014-08-12 18:07:07 +09:00
Godfrey Chan
49798b52bf Merge pull request #16300 from vast/mention-changes-to-nil-serialization-in-upgrading-from-3.2
Mention changes to `nil` handling in serialized attributes
2014-08-10 20:31:10 -07:00
Robert Eshleman
d71433d7d4 Cleanup Guides Guidelines [ci skip]
* Copy editing for clarity in several locations
* Rename "Titles" section to "Headings"
* Fix incorrect anchor in link to API Documentation Guidelines for filenames
2014-08-10 19:53:00 -04:00
yuuji.yaginuma
38e8bb8301 [ci skip] Fix sample code in engines guide 2014-08-10 22:10:15 +09:00
Guillermo Álvarez Fernández
b20d11133d Fix typo in plugins doc 2014-08-08 15:13:40 +02:00
Yves Senn
a819211984 Merge pull request #16359 from skanev/after-bundle-in-rails-templates
Add an after_bundle callback in Rails templates

Conflicts:
	railties/CHANGELOG.md
2014-08-06 08:49:00 +02:00
Stefan Kanev
c294e91d00 Add after_bundle to the release notes and upgrade guide 2014-08-05 19:38:48 +03:00
Richard Schneeman
aa7d5372f7 Merge pull request #16375 from johnnyshields/guides
Guides: Add definition of `config.assets.manifest` option to configuring.md
2014-08-04 15:51:36 -05:00
Johnny Shields
edfc7b96a1 [ci skip] Guides: Add definition of config.assets.manifest option to configuring.md 2014-08-05 05:02:59 +09:00
David Heinemeier Hansson
611849772d Pull in the custom configuration concept from dhh/custom_configuration 2014-08-03 15:48:14 -07:00
David Heinemeier Hansson
206347fd3e Update docs to reflect that helper stubs are no longer generated 2014-08-03 15:12:05 -07:00
Zachary Scott
cadc8a0dfc Merge pull request #16306 from aditya-kapoor/add-docs-for-uglifier
[ci skip] add tip for uglifier in execjs error
2014-08-02 23:10:34 -07:00
Aditya Kapoor
1f72ab3add [ci skip] add tip for uglifier in execjs error 2014-08-03 10:13:38 +05:30
yuuji.yaginuma
c9469c0d01 [ci skip] Remove "Machinist" from testing guide 2014-08-03 10:37:31 +09:00
Stefan Kanev
097b210189 Add an after_bundle callback in Rails templates
The template runs before the generation of binstubs – this does not
allow to write one, that makes an initial commit to version control.
It is solvable by adding an after_bundle callback.
2014-08-03 00:29:29 +02:00
schneems
dc1a6614dc [ci skip] fix markdown 2014-08-02 15:48:37 -05:00
Vijay Dev
3bf2a4c0d2 Merge branch 'master' of github.com:rails/docrails
Conflicts:
	guides/source/testing.md
2014-08-02 12:09:07 +00:00
@schneems and @sgrif
2bbcca004c Deprecate *_path methods in mailers
Email does not support relative links since there is no implicit host. Therefore all links inside of emails must be fully qualified URLs. All path helpers are now deprecated. When removed, the error will give early indication to developers to use `*_url` methods instead.

Currently if a developer uses a `*_path` helper, their tests and `mail_view` will not catch the mistake. The only way to see the error is by sending emails in production. Preventing sending out emails with non-working path's is the desired end goal of this PR.

Currently path helpers are mixed-in to controllers (the ActionMailer::Base acts as a controller). All `*_url` and `*_path` helpers are made available through the same module. This PR separates this behavior into two modules so we can extend the `*_path` methods to add a Deprecation to them. Once deprecated we can use this same area to raise a NoMethodError and add an informative message directing the developer to use `*_url` instead.

The module with warnings is only mixed in when a controller returns false from the newly added `supports_relative_path?`.

Paired @sgrif & @schneems
2014-07-30 12:01:45 -05:00
Zachary Scott
a240ad0c89 💅 from #16329 [ci skip] 2014-07-29 10:28:56 -07:00
Deepender Singla
3d42330048 Get request should not write to database note added. [skip ci] 2014-07-29 22:48:50 +05:30
Vasily Polovnyov
4bfd0cef5b [ci skip] Clarify the "Serialized Attributes" section
Mention that the change in nil handling for serialized attributes
affects custom coders.
2014-07-26 22:47:24 +04:00
Vasily Polovnyov
9c8826bcd2 [ci skip] Mention the change in nil handling for serialized attributes
in "Upgrading from Rails 3.2 to Rails 4.0"
2014-07-26 22:42:50 +04:00
Yves Senn
38c2fec014 Merge pull request #16258 from mattwarrenrnp/master
adding indexes on tables in migration scripts [ci skip]
2014-07-25 11:26:04 +02:00
Matt Warren
0f9118ab6f adding indexes on tables in migration scripts
missed one migration script in last commit

remove some empty lines

using the belongs_to index option to be more concise
2014-07-24 19:18:00 -02:30
Matthew Draper
f3478f8413 Merge pull request #16276 from y-yagi/bug_report_templates
[ci skip]Add i18n master to the Gemfile
2014-07-24 20:36:34 +09:30
yuuji.yaginuma
ea88b8e8c3 [ci skip]Add i18n master to the Gemfile 2014-07-24 17:08:11 +09:00
Matthew Draper
7e20b9449a Merge pull request #16260 from akshay-vishnoi/doc-change
Calling require_self twice in css raises Sprockets::ArgumentError exception [ci skip]
2014-07-24 17:30:22 +09:30
Akshay Vishnoi
2e679ac262 Calling require_self twice in css raises Sprockets::ArgumentError exception [ci skip] 2014-07-24 11:39:41 +05:30
Arthur Nogueira Neves
8c48a70824 Merge pull request #16237 from tonytonyjan/patch
`create` method returns an active record object with errors instead of false when validation fails. [skip ci]
2014-07-23 13:02:12 -04:00
Tony Jian
d0af905925 create return an active record object with erros instead of false when validation fails. [skip ci] 2014-07-23 16:31:55 +08:00
Akshay Vishnoi
28b3180f49 Fixes #16255 [ci skip] 2014-07-22 19:19:32 +05:30
Yves Senn
ce14ebe6b4 docs, add example for running a single test against core adapters.
[ci skip]
2014-07-22 08:41:25 +02:00
Siddharth Bhagwan
7021e66588 Generator guide grammatical error fixed [ci skip] 2014-07-21 17:39:20 +05:30
yuuji.yaginuma
7464d00dd7 [ci skip] Fix code in Routing Guide 2014-07-21 11:27:20 +09:00
Juanito Fatas
132e3fdf80 [ci skip] Normalize all localhost linking. 2014-07-20 18:30:27 +08:00
Robin Dupret
ba9fe6cf90 Follow-up to #16097 [ci skip]
Even if this is not exactly the same, let's add a new-line character
instead of two spaces. While it's specified in the Markdown specs that
adding spaces at the end of the line creates a break-line tag, this is
a brittle approach as people may remove them saving the file on certain
editors.
2014-07-18 12:29:54 +02:00
Dave Jachimiak
f032ba528b Remove "profile and benchmark" line from command line guide
The profiling and benchmarking commands are no longer built into Rails.
2014-07-17 09:07:08 -04:00
Juanito Fatas
59b93dfda7 [ci skip] Remove duplicated last! section.
Reference: d4fd0bd177

cc @schneems
2014-07-16 23:12:13 +08:00
Juanito Fatas
758ae37305 [ci skip] Use appropriate mailer syntax.
Reference: f7e4362011
2014-07-16 22:45:58 +08:00
Jonas Baumann
e96e840ede link minitest assertions documentation. 2014-07-16 12:34:03 +02:00
Jonas Baumann
cbc0c18461 document assert[_not]_empty, assert[_not]_includes, assert[_not]_predicate in testing guide. 2014-07-16 12:30:46 +02:00
Rafael Mendonça França
93e09f5278 Merge pull request #16180 from rafaelfranca/rm-dirty
Improve Active Model Dirty API.
2014-07-15 18:45:15 -03:00
Rafael Mendonça França
41fb06fa47 Deprecate reset_#{attribute} in favor of restore_#{attribute}.
These methods may cause confusion with the `reset_changes` that
behaves differently
of them.

Also rename undo_changes to restore_changes to match this new set of
methods.
2014-07-15 18:09:38 -03:00
Godfrey Chan
da6472c916 Document the change in nil handling for serialized attributes
Also updated the test case to reflect that
2014-07-15 09:08:31 -07:00
Godfrey Chan
9386ddfd40 Format pass on 4.2 release notes [ci skip]
*   Leave two blank lines between sections/packages for readibility.

*   Always indent bullet points with four spaces. This allows multi-paragraph
    points to align properly (see #16103), and it is the same as the format we
    already use in CHANGELOGs. Doing this consistently sets an easy precedent
    for future contributors to follow.

*   Always put the PR/commit link on its own line in the source. If the bullet
    point spans multiple paragraphs, put it on its own paragraph at the end.

[Godfrey Chan & Juanito Fatas]
2014-07-13 17:23:32 -07:00
Gaurish Sharma
04e1281990 Add link to minitest rdoc & github 2014-07-13 02:28:25 +05:30
Abdelkader Boudih
d966ee0eca [Bug report templates] Added rack master to the Gemfile 2014-07-12 10:36:57 +00:00
Vijay Dev
46d2a517a4 Merge branch 'master' of github.com:rails/docrails
Conflicts:
	activerecord/lib/active_record/base.rb
2014-07-12 10:24:49 +00:00
Vijay Dev
d97d8379eb fix mismatched example call [ci skip] 2014-07-12 10:21:00 +00:00
Vijay Dev
85f463f616 Revert "[ci skip] Fix doc for except"
This reverts commit 0f6b101e09d210cea2494c5d4225760f1951ea67.

Reason: It's better to let `unscope` be documented. We can add a
separate section for `except`.
2014-07-12 10:18:18 +00:00