| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
| | |
| | |
| | | |
messaging around 'Showing Posts' section
|
| | | |
|
| | | |
|
| |\ \ |
|
| | | |
| | | |
| | | |
| | | | |
change - https://github.com/rails/rails/commit/f038d4cc5fe1ac21f92c7e32c61ff85a0c816f3f
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Improve the testing guide [ci skip]
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Improve the "Testing Rails Applications" guide adding a section for
testing helpers and a little note about associations with ActiveRecord
and YAML fixtures.
Also add a link to Fixture Builder ; yet another replacement for
fixtures such as Machinist or FactoryGirl.
|
| |_|_|/
|/| | |
| | | |
| | | | |
http://stackoverflow.com/a/4988984/129798 for an explanation for why this is required for Ruby 1.9.
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Added SanitizeHelper to rails guide docs [ci skip]
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | | |
Added SanitizeHelper to rails guide docs [ci skip]
Added SanitizeHelper to rails guide docs update [ci skip]
|
|\ \ \ \
| | | | |
| | | | | |
added String#to_date documentation to Rails 4 upgrade guide [ci skip]
|
| | | | |
| | | | |
| | | | |
| | | | | |
[ci skip]
|
|\ \ \ \ \
| | | | | |
| | | | | | |
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
|