Skip to content

Commit 055f999

Browse files
committed
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.
1 parent 6828546 commit 055f999

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

activerecord/README.rdoc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ A short rundown of some of the major features:
3434
This would also define the following accessors: <tt>Product#name</tt> and
3535
<tt>Product#name=(new_name)</tt>.
3636

37-
{Learn more}[link:classes/ActiveRecord/Base.html]
37+
{Learn more}[https://api.rubyonrails.org/classes/ActiveRecord/Base.html]
3838

3939
* Associations between objects defined by simple class methods.
4040

@@ -44,7 +44,7 @@ A short rundown of some of the major features:
4444
belongs_to :conglomerate
4545
end
4646

47-
{Learn more}[link:classes/ActiveRecord/Associations/ClassMethods.html]
47+
{Learn more}[https://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html]
4848

4949

5050
* Aggregations of value objects.
@@ -56,7 +56,7 @@ A short rundown of some of the major features:
5656
mapping: [%w(address_street street), %w(address_city city)]
5757
end
5858

59-
{Learn more}[link:classes/ActiveRecord/Aggregations/ClassMethods.html]
59+
{Learn more}[https://api.rubyonrails.org/classes/ActiveRecord/Aggregations/ClassMethods.html]
6060

6161

6262
* Validation rules that can differ for new or existing objects.
@@ -68,7 +68,7 @@ A short rundown of some of the major features:
6868
validates :password, :email_address, confirmation: true, on: :create
6969
end
7070

71-
{Learn more}[link:classes/ActiveRecord/Validations.html]
71+
{Learn more}[https://api.rubyonrails.org/classes/ActiveRecord/Validations.html]
7272

7373

7474
* Callbacks available for the entire life cycle (instantiation, saving, destroying, validating, etc.).
@@ -78,7 +78,7 @@ A short rundown of some of the major features:
7878
# the `invalidate_payment_plan` method gets called just before Person#destroy
7979
end
8080

81-
{Learn more}[link:classes/ActiveRecord/Callbacks.html]
81+
{Learn more}[https://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html]
8282

8383

8484
* Inheritance hierarchies.
@@ -88,7 +88,7 @@ A short rundown of some of the major features:
8888
class Client < Company; end
8989
class PriorityClient < Client; end
9090

91-
{Learn more}[link:classes/ActiveRecord/Base.html]
91+
{Learn more}[https://api.rubyonrails.org/classes/ActiveRecord/Base.html]
9292

9393

9494
* Transactions.
@@ -99,7 +99,7 @@ A short rundown of some of the major features:
9999
mary.deposit(100)
100100
end
101101

102-
{Learn more}[link:classes/ActiveRecord/Transactions/ClassMethods.html]
102+
{Learn more}[https://api.rubyonrails.org/classes/ActiveRecord/Transactions/ClassMethods.html]
103103

104104

105105
* Reflections on columns, associations, and aggregations.
@@ -108,7 +108,7 @@ A short rundown of some of the major features:
108108
reflection.klass # => Client (class)
109109
Firm.columns # Returns an array of column descriptors for the firms table
110110

111-
{Learn more}[link:classes/ActiveRecord/Reflection/ClassMethods.html]
111+
{Learn more}[https://api.rubyonrails.org/classes/ActiveRecord/Reflection/ClassMethods.html]
112112

113113

114114
* Database abstraction through simple adapters.
@@ -125,10 +125,10 @@ A short rundown of some of the major features:
125125
database: 'activerecord'
126126
)
127127

128-
{Learn more}[link:classes/ActiveRecord/Base.html] and read about the built-in support for
129-
MySQL[link:classes/ActiveRecord/ConnectionAdapters/Mysql2Adapter.html],
130-
PostgreSQL[link:classes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapter.html], and
131-
SQLite3[link:classes/ActiveRecord/ConnectionAdapters/SQLite3Adapter.html].
128+
{Learn more}[https://api.rubyonrails.org/classes/ActiveRecord/Base.html] and read about the built-in support for
129+
MySQL[https://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/Mysql2Adapter.html],
130+
PostgreSQL[https://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapter.html], and
131+
SQLite3[https://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/SQLite3Adapter.html].
132132

133133

134134
* Logging support for Log4r[https://github.com/colbygk/log4r] and Logger[https://ruby-doc.org/stdlib/libdoc/logger/rdoc/].
@@ -157,7 +157,7 @@ A short rundown of some of the major features:
157157
end
158158
end
159159

160-
{Learn more}[link:classes/ActiveRecord/Migration.html]
160+
{Learn more}[https://api.rubyonrails.org/v6.1.0/classes/ActiveRecord/Migration.html]
161161

162162

163163
== Philosophy

0 commit comments

Comments
 (0)