Commit Graph

60 Commits

Author SHA1 Message Date
Rafael Mendonça França
37fd0e7fe4
Development of Rails 8.0 starts now
🎉
2024-05-13 16:45:20 +00:00
André Guimarães Sakata
f6cace4f83 Use Ruby's official documentation 2024-04-23 17:57:56 -03:00
Jonathan Hefner
390db4be35 Use api.rubyonrails.org URLs in README.rdoc [ci-skip]
Follow-up to #49995.

Prior to this commit, `link:classes/...` URLs were used in `README.rdoc`
files so that the URLs would be versioned when rendered at
api.rubyonrails.org.  However, outside of api.rubyonrails.org, such URLs
aren't properly resolved.

Since rails/sdoc#345, `https://api.rubyonrails.org/classes/...` URLs
will also be versioned when rendered at api.rubyonrails.org, and such
URLs are properly resolved everywhere.  Therefore, this commit converts
`link:classes/...` URLs to that form.
2023-11-14 16:35:43 -06:00
laicuRoot
055f999304 Fix links for the ActiveRecord readme [ci-skip]
While I was reading the documentation of ActiveRecord I noticed
that the links are not working.

This PR address that issue and change the links to the right page
of the API documentation.
2023-11-10 11:10:21 +00:00
Jonathan Hefner
c48dc47ca3 Use RDoc block quote syntax [ci-skip]
This renders the quote in a `<blockquote>` element instead of a `<pre>`
element.
2023-10-19 13:26:56 -05:00
Rafael Mendonça França
fb6c6007d0
Development of Rails 7.2 starts now
🎉
2023-09-27 03:59:11 +00:00
zzak
dd89f600f7
🔗 Remove RDoc auto-link from Rails module everywhere 2023-06-23 10:49:30 +09:00
zzak
722d4f6582
Unlink Rails constant from READMEs 2023-05-29 15:14:44 +09:00
zzak
f8544410a2 Use stable guides link for package READMEs
E.g.: These show up here:
https://api.rubyonrails.org/files/actioncable/README_md.html
2023-02-04 09:01:00 +09:00
Petrik
702421e5c2 Fix Active Record README formatting [ci-skip]
This fixes the indentation of the example code of the first bullet
point. The "Learn more" link was moved to the bottom of the bullet point,
similar to the other bullet points.
2022-12-26 21:57:50 +01:00
Rafael Mendonça França
83d85b2207
Start Rails 7.1 development 2021-12-07 15:52:30 +00:00
Ryuta Kamizono
35bf079aed Update all Migration version references
Migration version references has been updated 2 times in less than 3
weeks (#41894, #42113).

I'd not want to receive the same tweaks in the near future.
2021-05-02 21:17:04 +09:00
Rafael Mendonça França
077c66d5d6
Rename master to main in all code references 2021-01-19 20:46:33 +00:00
Abhay Nikam
bdfffd1355 Update the Rails mailing list URLs to new discuss discourse URL [ci skip] 2020-04-02 22:00:28 +05:30
davidauza-engineer
e3d496acf9 Update examples Migration versions to 6.0 [ci skip] 2020-02-16 15:38:51 -05:00
Takayuki Nakata
a0249aed8c Fix docs to update http and www.ruby-doc.org [ci skip]
- Replace http with https
- Replace www.ruby-doc.org with ruby-doc.org
2019-09-09 09:34:09 +09:00
Kasper Timm Hansen
0fc1397784
Merge pull request #35559 from ashishprajapati/ashishprajapati/important_textual_improvements
Added missing guide links in documentation and minor wording fix
2019-03-09 22:54:21 +01:00
ashishprajapati
e3ef12b310 Added missing guide links in README documentation and minor wording fix [ci skip] 2019-03-10 03:17:01 +05:30
Abhay Nikam
027e492b6f Fix links in gemspec and docs from http to https. 2019-03-09 19:42:35 +05:30
Fatos Morina
37cf9b3466 Fix typos and add a few suggestions 2017-11-28 19:27:43 +01:00
suginoy
aa0865a8f0 [ci skip]Update the documentation about the primary key type
Replace the primary key type `integer` in docs with `bigint`.

ref #26266
2017-10-29 00:27:03 +09:00
Yoshiyuki Hirano
3a11e0586e Update MIT licenses link [ci skip] 2017-08-22 08:46:02 +09:00
Ryuta Kamizono
af9878d640 Remove legacy mysql adapter
Follow up to #22642.
2015-12-21 08:46:55 +09:00
Matthew Draper
97c77160cd Use a real migration version number in docs
Even though this means more things to change when we bump after a
release, it's more important that our examples are directly copyable.
2015-12-15 17:18:10 +10:30
Matthew Draper
c0af95e0ab Use a deliberately-invalid migration version in all doc examples
If we use a real version, at best that'll be an onerous update required
for each release; at worst, it will encourage users to write new
migrations against an older version than they're using.

The other option would be to leave these bare, without any version
specifier. But as that's just a variant spelling of "4.2", it would seem
to raise the same concerns as above.
2015-12-15 17:18:09 +10:30
Elektron1c97
6bd417df50 [ci skip] Add a dollar sign to each command in the READMEs
According to pr #22443 in the guides there's always a dollar sign before every command, so why is in the main README a `$` and in every submodule a `%`?

Just eye candy..
2015-12-06 19:18:52 +01:00
Ryuta Kamizono
f7a35cc5cf Remove unnecessary display width
The **(11)** does not affect the storage size of the data type, which for an
INT will always be 4 bytes. It affects the **display width**.

http://www.tocker.ca/2015/07/02/proposal-to-deprecate-mysql-integer-display-width-and-zerofill.html
2015-09-16 13:50:00 +09:00
Manish shrivastava
6252d0aece updated Inline format at activerecord rdoc
For Inline formats, changed ` (single backticks)   to <tt> tag at active record rdoc as single backticks (`) don't work with rdoc. for inline format.
2015-05-20 19:15:33 +05:30
claudiob
0080a886b2 [ci skip] Don’t encourage sudo gem install
I think we are better off leaving `sudo` outside of the documented
way of installing gems (`activerecord`, `actionpack`, …).

We don’t want newbies to think that `sudo` is required or, even worse, than
they actually have to type `[sudo] gem install`.

In most scenarios, `sudo` is not needed to install gems, and people who do
need it, probably already know about it.

What do you think? 😁
2015-05-12 14:51:19 -07:00
Zachary Scott
4c66ab2b21 Feature requests should be made on the mailing list, not submitted to
the issue tracker. See also #15455 [ci skip]
2014-06-01 19:11:39 -07:00
Vijay Dev
4ae90a7dd8 Merge branch 'master' of github.com:rails/docrails 2014-06-01 11:46:37 +00:00
Zachary Scott
fc63e8074a Use github url for homepage of log4r [ci skip] 2014-05-28 20:06:57 -07:00
Zachary Scott
df36a3b372 ✂️ 2014-05-12 08:37:37 -07:00
Vijay Dev
7b9e0f53c7 minor change in AR readme [ci skip] 2014-05-10 14:13:32 +00:00
Vijay Dev
a923375e79 fix formatting errors [ci skip] 2014-05-09 00:04:12 +05:30
Gaurish Sharma
e5ac6c8753 Fix Formatting in AR Readme
Don't make free form text appear in code blocks [ci skip]
2014-05-04 10:40:16 +05:30
Waynn Lue
54644f2e78 XML-files isn't a word 2013-05-06 17:22:18 -07:00
Waynn Lue
c9f75463bf make the headers consistent 2013-03-14 18:03:17 -07:00
Mike Munroe
731aac740b change log4r link to most recent, updated location 2013-02-28 16:42:39 -05:00
claudiob
20c03e7037 Remove references to AR::Observer from docs
ActiveRecord::Observer was extracted into a separate gem so it
should not be referenced anymore (see https://github.com/rails/rails/commit/ccecab3)
2012-11-30 13:54:03 -08:00
Francesco Rodriguez
82355dfb35 update code examples to 1.9 hash syntax in the AR/README [ci skip] 2012-09-17 00:28:05 -05:00
Rafael Mendonça França
f4d818d51e Revert "Removing composed_of from ActiveRecord."
This reverts commit 14fc8b34521f8354a17e50cd11fa3f809e423592.

Reason: we need to discuss a better path from this removal.

Conflicts:
	activerecord/lib/active_record/reflection.rb
	activerecord/test/cases/base_test.rb
	activerecord/test/models/developer.rb
2012-07-27 19:25:14 -03:00
Steve Klabnik
14fc8b3452 Removing composed_of from ActiveRecord.
This feature adds a lot of complication to ActiveRecord for dubious
value. Let's talk about what it does currently:

class Customer < ActiveRecord::Base
  composed_of :balance, :class_name => "Money", :mapping => %w(balance amount)
end

Instead, you can do something like this:

    def balance
      @balance ||= Money.new(value, currency)
    end

    def balance=(balance)
      self[:value] = balance.value
      self[:currency] = balance.currency
      @balance = balance
    end

Since that's fairly easy code to write, and doesn't need anything
extra from the framework, if you use composed_of today, you'll
have to add accessors/mutators like that.

Closes #1436
Closes #2084
Closes #3807
2012-06-18 14:53:03 -04:00
Alvaro Pereyra
da4252f4a1 Updates validations examples to be more attuned on the new Rails 3.0 conventions 2012-05-28 01:45:33 -05:00
Karunakar (Ruby)
0023643522 Moved all the logger methods to active support logger
minor
2012-01-06 00:38:46 +05:30
Kristian Freeman
2315e96a17 Finished implementation of MIT license linking. 2011-12-23 13:03:21 -08:00
Akira Matsuda
55b203dac1 self.up, self.down => up, down 2011-11-07 11:56:50 +09:00
Sukeerthi Adiga
b905f8c963 Rubygems => RubyGems 2011-08-13 16:22:31 -07:00
ejy
9e39fd9985 Removed trailing slash of 'Download and installation' Github URL as per convention 2011-07-28 18:40:35 +02:00
Waynn Lue
6fbd548b5f add a missing "the" and normalize the use of periods. 2011-06-03 12:26:53 -07:00