| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Add description of action in Getting Started Guide [ci skip]
|
| |
| |
| |
| |
| |
| | |
[ci skip]
Closes #11804
|
|\ \
| |/
|/| |
Updated outdated initialization guide [ci skip]
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Add events reference link to the text about jquery-ujs [ci skip]
|
| | | |
|
| |/
|/|
| |
| | |
associations with NOT NULL constraint
|
|/ |
|
| |
|
| |
|
|\
| |
| | |
document how to deploy to a subdirectory [ci skip]
|
| | |
|
|\ \
| | |
| | | |
Bump ruby version [ci skip]
|
| | | |
|
|/ / |
|
| |
| |
| |
| | |
by default included to precompile only non-js/css files from `app/assets` and `application.(css|js)`
|
| |
| |
| |
| |
| |
| |
| |
| | |
- routes for CRUD already exists as `resources :posts` is in
`config/routes.rb`
- So we don't have to add any new route in the `config/routes.rb`
- As per #11644, the adding of routes which are already there confuses user, so here its
changed to referring output of `rake routes`
|
| | |
|
| |
| |
| |
| | |
Passing the actual ID is not idiomatic.
|
|\ \
| | |
| | | |
update guide to reflect default HMAC SHA1 in MessageVerifier used in SignedCookieStore
|
| | | |
|
| | |
| | |
| | |
| | | |
SignedCookieStore [ci skip]
|
|\ \ \
| | | |
| | | | |
Added to 'Security' section in 'Getting Started with Rails' guide, including reference to 'Ruby on Rails Security Guide'.
|
| | | |
| | | |
| | | |
| | | | |
Guide'. [ci skip]
|
|\ \ \ \
| |/ / /
|/| | | |
Fix active_record_validations.md document, `:save` for `on:` validation helper was never available
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
helper was never available
According to the guide, ":save" value for the "on:" validation helper
was available like below
validates :name, presence: true, on: :save
but this was never available according to the implementation of the
valid? method, which is below
# Runs all the validations within the specified context. Returns
+true+ if
# no errors are found, +false+ otherwise.
#
# If the argument is +false+ (default is +nil+), the context is set
to <tt>:create</tt> if
# <tt>new_record?</tt> is +true+, and to <tt>:update</tt> if it is
not.
#
# Validations with no <tt>:on</tt> option will run no matter the
context. Validations with
# some <tt>:on</tt> option will only run in the specified context.
def valid?(context = nil)
context ||= (new_record? ? :create : :update)
output = super(context)
errors.empty? && output
end
So the documentation was always wrong since the PR proposed by
@neerajdotname ( #10287 ) was rejected.
|
| | | |
| | | |
| | | | |
The section was clearly wrong and was just an example about how to use ActiveSupport helpers in Rack/Sinatra
|
| | | |
| | | |
| | | |
| | | | |
[ci skip]
|
| | | |
| | | |
| | | |
| | | | |
[ci skip]
|
|\ \ \ \
| | | | |
| | | | | |
Add note that you must be in the rails app when starting the server
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
server.
This is a response to issue #11731 and is a common mistake for people
newer to rails that try forget to cd into the new rails app after
running rails new.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
i18n guide update: corrected reference to activerecord to instead reference activemodel
|
| |/ / / /
| | | | |
| | | | |
| | | | | |
is in activemodel, not activerecord
|
|\ \ \ \ \
| | | | | |
| | | | | | |
[Fixes #11734]Correct Association Basics Guide on has_and_belongs_to_many
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
skip]
Done the following changes:
1. Replace uniq call in example with autosave as uniq is not supported
on has_and_belongs_to_many
2. Add :readonly option to list of supported call as per
[EdgeApi](http://edgeapi.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#method-i-has_and_belongs_to_many)
|
|/ / / / |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
in getting started guide for section 5.6
[ci skip]
|
|\ \ \ \
| | | | |
| | | | | |
Fix status codes in document
|
| | |/ /
| |/| |
| | | |
| | | |
| | | | |
RFC 6585 Additional HTTP Status Codes
http://www.ietf.org/rfc/rfc6585.txt
|
|/ / / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
order on the old ones
The previous behavior added a major backward incompatibility since it
impossible to have a upgrade path without major changes on the
application code.
We are taking the most conservative path to be consistent with the idea
of having a smoother upgrade on Rails 4.
We are reverting the behavior for what was in Rails 3.x and,
if needed, we will implement a new API to prepend the order clauses in
Rails 4.1.
|
|\ \ \
| | | |
| | | | |
Update of 'The Asset Pipeline' guide for Rails 4.
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Add installation instructions for FreeBSD [ci skip]
|
| | | | |
| | | | |
| | | | |
| | | | | |
Add packages required to setup the rails environment on FreeBSD.
|
|/ / / / |
|
| |/ /
|/| |
| | |
| | | |
- Reference #11644
|
|\ \ \ |
|
| | | | |
|