Commit Graph

38945 Commits

Author SHA1 Message Date
Andrew White
e5275f9b59 Clear named routes when routes.rb is reloaded
Fix an issue where Journey was failing to clear the named routes hash when the
routes were reloaded and since it doesn't overwrite existing routes then if a
route changed but wasn't renamed it kept the old definition. This was being
masked by the optimised url helpers so it only became apparent when passing an
options hash to the url helper.
2013-07-21 17:11:52 +01:00
Gaurish Sharma
b48bb74ef8 Add logging performance [ci skip] 2013-07-21 18:57:30 +05:30
Vijay Dev
3613235cc3 Merge branch 'master' of github.com:rails/docrails 2013-07-21 18:08:43 +05:30
Yves Senn
9dc8aef084 Merge pull request #11416 from tigrish/master
Rename the I18n keys for associations' restrict_dependent_destroy errors
2013-07-21 04:06:32 -07:00
Yves Senn
02e8dae627 Merge pull request #11515 from prathamesh-sonpatki/edit-index-page
Removed information about creating database [ci skip]
2013-07-21 03:51:56 -07:00
Guillermo Iguaran
5291569693 Merge pull request #11521 from mking/release-notes-major-features
Rails 4.0 release notes. Explain major features added and removed.
2013-07-20 16:13:36 -07:00
Matthew King
60cca3b061 Rails 4.0 release notes. Explain major features added and removed. [ci skip] 2013-07-20 19:09:14 -04:00
schneems
b0caea29c2 Match Dev/Prod parity for Index Page
With Rails 4 the default index page was moved from a static file `index.html` inside the `public/` folder to an internal controller/view inside of the railties gem. This was to allow use of erb in the default index page and to remove the requirement that new apps must delete a static file to make their index pages work. While this was a good change, the functionality was unexpected to developers who wish to get their apps running in production ASAP. They will create a new app `rails new my app`, start a server to verify it works, then immediately deploy the app to verify that it can start working in production. Unfortunately locally they see a page when they visit `localhost:3000` when they visit their production app they get an error page.

We initially anticipated this problem in the original pull request, but did not properly anticipate the severity or quantity of people who would like this functionality. Having a default index page serves as an excellent litmus test for a passed deploy on default apps, and it is very unexpected to have a page work locally, but not on production. 

This change makes the default index page available in production if the developer has not over-written it by defining their own `root` path inside of routes.
2013-07-20 14:56:10 -05:00
Prathamesh Sonpatki
e33defcec8 Removed information about creating database[ci skip]
- As default index page is no longer in public folder, rails hits the
  welcome controller in railties for index action
- If the database is not created or username and password are
  incorrect in database.yml, those errors are first shown before index
  action succeeds
- welcome#index succeeds iff the database is created with correct
  details in database.yml
- So this information about creating database is not required in the
  index template
2013-07-20 20:22:09 +05:30
Vasiliy Ermolovich
cadfe4bf45 add support for html attributes to grouped_options_for_select 2013-07-20 17:14:28 +03:00
Yves Senn
eda66d89c7 Merge pull request #11508 from vipulnsward/extract_constants
Extract verbs array from helper to a contant
2013-07-20 01:46:10 -07:00
Vipul A M
30ca90a0b6 Extract verbs array from helper to a constant 2013-07-20 01:32:58 +05:30
Guillermo Iguaran
34b8953609 Merge pull request #11507 from vipulnsward/av_typo-4
Fix test name typos
2013-07-19 07:49:02 -07:00
Vipul A M
ad3916d133 Fix test name typos 2013-07-19 20:15:14 +05:30
Yves Senn
7cb2e82bd6 Merge pull request #11501 from nishantmodak/patch-3
Upgrade guide. Renaming Indexes on tables. [ci skip]
2013-07-19 05:01:01 -07:00
Nishant Modak
365921557d Upgrade guide. Renaming Indexes on tables. [ci skip].
39eef1a565 (commitcomment-3672522)
2013-07-19 16:53:09 +05:30
Mikhail Dieterle
760662de86 use strong_params in example 2013-07-19 10:54:24 +03:00
Yves Senn
20281b7f39 fix typo in Active Record Validations guide. [ci skip].
Closes #11498.
2013-07-19 07:44:53 +02:00
Aaron Patterson
fa1e101d54 use the superclass implementation 2013-07-18 15:05:49 -07:00
Yves Senn
9267a7d971 Merge pull request #11492 from maratvmk/concern_test
remove duplication in concern_test
2013-07-18 09:37:43 -07:00
Rafael Mendonça França
8ab4656fbc Merge pull request #11491 from erichkist/ek-revert-unscope-patch
Revert "Fix SyntaxError in guides sample code"
2013-07-18 08:50:53 -07:00
Marat Kazbekov
0ebf45cf5d remove duplication in test 2013-07-18 20:48:19 +05:00
Damien Mathieu
bae07dcce2 use the appropriate RDoc code markup
Thanks @fxn
2013-07-18 17:15:11 +02:00
Erich Kist
d4ed68a501 Revert "Fix SyntaxError in guides sample code"
This reverts commit f573df32d43c413a5098721ba6151ff190c23c6c.

The original idea of this documentation was to showcase the feature
where you can remove some only queries attributes with a single
key-value pair.
2013-07-18 12:04:09 -03:00
Damien Mathieu
3c6767cade document the Rails::ConsoleMethods#helper and #controller methods
Closes rails/rails#11362
2013-07-18 16:18:07 +02:00
Rafael Mendonça França
ebc5bdb8e7 Use the canonical router on the CHANGELOG entry
Thanks @egilburg

[ci skip]
2013-07-18 10:35:15 -03:00
Rafael Mendonça França
816b35e781 Fix examples of number_to_percentage
[ci skip]
2013-07-18 10:33:33 -03:00
Rafael Mendonça França
ec17fca48f Merge pull request #159 from rajcybage/my_fix
fixes the test case of that plugins
2013-07-17 22:39:36 -07:00
Rajarshi Das
d49c00027e fixes the test case of that plugins 2013-07-18 11:04:21 +05:30
Santiago Pastorino
77e4f317ec Merge pull request #11483 from garysweaver/grammar_fix_in_upgrade_documentation
grammar fix in upgrade documentation
2013-07-17 20:55:04 -07:00
Guillermo Iguaran
2a611724b2 Merge pull request #11485 from simi/mysql2
Use latest mysql2.
2013-07-17 15:45:41 -07:00
Josef Šimánek
d97269dac7 Use latest mysql2.
Fixes #11457
2013-07-18 00:43:55 +02:00
Xavier Noria
df6a62d8c0 Merge pull request #11465 from arunagw/removed_missleading_readme_link_doc
Fixed README link in API
2013-07-17 15:04:29 -07:00
Gary S. Weaver
9220bf05b5 grammar fix in upgrade documentation 2013-07-17 17:19:22 -04:00
Yves Senn
5245648812 Merge pull request #11479 from henrikhodne/improve-ar-querymethods-includes-docs
Improve ActiveRecord::QueryMethods#includes docs [ci skip]
2013-07-17 11:42:14 -07:00
Henrik Hodne
ef350c9f2e Improve ActiveRecord::QueryMethods#includes docs
It's not immediately clear whether you can pass in multiple relations or
not. After going through the code a bit, I saw that the arguments are
just appended to an array. Also, added nested relations example.

[ci skip]
2013-07-17 11:37:39 -07:00
Yves Senn
faf6f7851e Merge pull request #11478 from newton10471/master
fixes plugin test for tutorial [ci skip]
2013-07-17 10:13:00 -07:00
Matt Newton
dec8a8ddcc fixes plugin test for tutorial
[ci skip]
2013-07-17 12:57:58 -04:00
Carlos Antonio da Silva
e1595c2cad Merge pull request #11469 from bvogel/master
Update bcrypt-ruby stable version to 3.1
2013-07-17 09:51:39 -07:00
Rashmi Yadav
e7485752e6 New output for scaffold generate [ci skip] 2013-07-17 17:47:08 +02:00
Burkhard Vogel-Kreykenbohm
ad62cf68f8 bcrypt-ruby stable is 3.1 2013-07-17 16:39:07 +02:00
Arun Agrawal
fd8890058e Guides fixed typo in index.html.erb file [ci skip] 2013-07-17 12:04:14 +02:00
Andrew White
1a58ac60d9 Refactor to reduce number of loops
Only build the missing_keys array once we have detected that there
actually are missing keys by moving the check to be part of the block
that performs the path substitution.
2013-07-17 10:46:20 +01:00
Arun Agrawal
4091606ff1 Fixed README link in API [ci skip]
This should not be a link because
it's creating a link with activesupport README right now
2013-07-17 10:35:59 +02:00
Arun Agrawal
507c803a93 Added some description to generate actionview gem [ci skip] 2013-07-17 10:19:13 +02:00
Andrew White
74722d66d3 Fix failing test missed for the past year :(
When optimized path helpers were re-introduced in d7014bc the test added
in a328f2f broke but no-one noticed because it wasn't being run by the
test suite.

Fix the test by checking for nil values or empty strings after the args
have been parameterized.
2013-07-17 08:56:34 +01:00
Arun Agrawal
96310f69e1 Added routing in test for actionpack 2013-07-17 08:55:24 +01:00
Yves Senn
c212cfecb1 Revert "Merge pull request #11120 from awilliams/ar_mysql2_boolean_quoting"
This reverts commit cb1d07e43926bcec95cb8b4a663ca9889173395a, reversing
changes made to 754a373e301d2df0b12a11083405252722bc8366.
2013-07-17 09:51:22 +02:00
Thiago Pinto
7b60441d2a Merge branch 'master' of github.com:rails/docrails 2013-07-16 22:58:57 -04:00
Thiago Pinto
786291ded3 Enhancing readability of options for delegate method 2013-07-16 22:58:20 -04:00