Arun Agrawal
fe67501e62
Should be checking if file exists or not.
...
I found this bug when running rake test:uncommitted
on a newly generated rails app which don't have
test file for application_controller.
Can see detail here #3461
2011-11-08 15:51:47 +05:30
Arun Agrawal
b53f77ec99
CHANGELOG to CHANGELOG.md
2011-11-08 12:56:51 +05:30
Xavier Noria
17ecdd388c
adds trailing +s to the output of EXPLAIN for MySQL
2011-11-07 02:01:56 -08:00
Akira Matsuda
42cf5eba26
Remove redundant blank line at the bottom
2011-11-07 14:31:12 +09:00
Xavier Noria
e7b7b44123
implements AR::Relation#explain
...
This is a first implementation, EXPLAIN is highly
dependent on the database and I have made some
compromises.
On one hand, the method allows you to run the most
common EXPLAIN and that's it. If you want EXPLAIN
ANALYZE in PostgreSQL you need to do it by hand.
On the other hand, I've tried to construct a string
as close as possible to the ones built by the
respective shells. The rationale is that IMO the
user should feel at home with the output and
recognize it at first sight. Per database.
I don't know whether this implementation is going
to work well. Let's see whether people like it.
2011-11-05 18:30:19 -07:00
Guillermo Iguaran
44e751fdd4
Add arel to Gemfile on apps generated in edge Rails
2011-11-05 19:26:23 -05:00
Jon Leighton
562583c766
Add ActiveRecord::Relation#uniq for toggling DISTINCT in the SQL query
2011-11-05 16:22:18 +00:00
Vijay Dev
fdbc4e5f4e
Merge branch 'master' of github.com:lifo/docrails
2011-11-05 20:45:11 +05:30
Florian Walch
bcd25e7576
Fixed after_initialize/after_find guide
...
Defining after_initialize and after_find as ordinary methods like documented
in the guide doesn't work with Rails 3.1.1; now macro-style is used here, too.
2011-11-05 13:34:01 +01:00
Franck Verrot
1679aa56f3
Synchronize the gemspecs since CHANGELOG has been renamed to CHANGELOG.md
2011-11-04 14:46:39 +01:00
Jon Leighton
281272ad36
Convert CHANGELOGs to Markdown format.
...
Reasons:
* Markdown reads well as plain text, but can also be formatted.
* It will make it easier for people to read on the web as Github
formats the Markdown nicely.
* It will encourage a level of consistency when people are writing
CHANGELOG entries.
The script used to perform the conversion is at
https://gist.github.com/1339263
2011-11-04 12:55:17 +00:00
Henrik Hodne
8611f14caf
Added bundle exec to rake test.
...
This is in response to rails/rails#3504 .
2011-11-03 22:19:49 +01:00
Vijay Dev
bc09a11a66
minor edit
2011-11-02 23:34:27 +05:30
Vijay Dev
b3c1cfa277
minor edits in AR validations guide
2011-11-02 23:01:30 +05:30
Colin MacKenzie IV
5745a5e85e
treat USAGE as an ERB template
2011-11-02 09:00:18 -04:00
Vijay Dev
9aa880f2e8
use relative urls for linking to sections in the guides
2011-11-02 00:37:18 +05:30
juandebravo
ed4bde5a09
Fix wrong link in initialization doc
2011-11-01 20:45:00 +02:00
Ryan Bigg
e28bd7b226
[config guide] mention that config methods are to be called on Railtie subclasses
2011-11-01 11:18:17 +11:00
Ryan Bigg
dfdbbe059f
[engines guide] add 'General engine configuration' section
2011-11-01 11:15:14 +11:00
Alexey Vakhov
d106b34bd5
Update routing guides, root route should be at the top of the file
2011-10-31 10:36:38 +04:00
Gonçalo Silva
2d337ef080
Fix typo on the performance test guide
2011-10-30 18:34:49 -02:00
Xavier Noria
c6b933faa9
prefer qualified constant "name" to "reference expression", much simpler
2011-10-30 02:25:25 -07:00
Vijay Dev
c809de8291
Merge branch 'master' of github.com:lifo/docrails
2011-10-30 14:47:23 +05:30
Xavier Noria
11f6795b23
defines Module#qualified_const_(defined?|get|set) and String#deconstantize
...
This commit also implements a faster version of #demodulize I was unable
to isolate with git add --patch.
Not a big fan of the name #deconstantize. It complements #demodulize
getting rid of the rightmost constant, hence the name, but it is
unrelated to the well-known #constantize. So unsure. Could not come
with anything better, please feel free to rename.
2011-10-29 18:10:45 -07:00
Jeremy Kemper
eabda416b7
Removing db/seeds.rb is fine. Don't blow up.
2011-10-29 14:14:13 -07:00
José Valim
e886f97669
Merge pull request #3337 from htanata/fix_rake_routes_for_controller_only_route
...
Remove trailing "#" on rake routes for controller only routes
2011-10-29 09:03:45 -07:00
Hendy Tanata
010622bb98
On inpsect routes, show :controller and :action to indicate dynamic.
2011-10-29 20:04:33 +08:00
Arun Agrawal
3fa8f362ad
method redefined warning removed!
2011-10-29 16:09:50 +05:30
Joost Baaij
f936996f69
Updated links to authentication plugins.
...
Removed mention of restful_authentication.
Added devise and authlogic.
Also mention Rails 3.1 built-in logic.
2011-10-28 13:24:14 +02:00
Denis Odorcic
177f893a28
Fix railtie configuration test calling PostsController#create which didn't exist
2011-10-27 02:16:59 -04:00
José Valim
aef62c4b4e
Scaffold returns 204 No Content for API requests without content. This makes scaffold work with jQuery out of the box.
2011-10-26 09:29:38 +02:00
José Valim
20c59dd214
Fix failing tests.
2011-10-26 09:20:24 +02:00
Henare Degan
df5f88c7c0
Fix a little typo
2011-10-26 19:03:53 +12:00
Vijay Dev
8aabdc69b7
Merge pull request #3357 from rahul100885/rahul100885_ws
...
Added test case for postgresql database
2011-10-25 13:43:47 -07:00
José Valim
771ca79f74
Revert "Merge pull request #3395 from bdurand/fix_file_store_cleanup"
...
Tests were failing on Travis-CI.
This reverts commit 79d01a8f16
, reversing
changes made to b838570bd6
.
2011-10-25 22:23:25 +02:00
Bruce Adams
7c6d4377b8
note that after_initialize is run for rake tasks
2011-10-24 16:18:42 -04:00
Alexey Vakhov
98fbb50ebf
Remove needless to_param in scaffold functional test
2011-10-24 22:38:10 +04:00
Vijay Dev
8698debcc2
Merge branch 'master' of github.com:lifo/docrails
2011-10-23 01:38:37 +05:30
Vijay Dev
227c31f7b6
edge doesnt provide turn gem in the gemfile anymore
2011-10-23 01:34:02 +05:30
José Valim
dabf6cf1be
Merge pull request #3408 from guilleiguaran/remove-turn
...
Remove Turn from default Gemfile.
2011-10-22 12:56:21 -07:00
Guillermo Iguaran
a458833705
Remove Turn from default Gemfile.
...
We still looking for a best presentation for tests output.
2011-10-22 14:34:05 -05:00
Aaron Patterson
259741ae73
Revert "Merge pull request #3405 from arunagw/middleware_name"
...
This reverts commit c33090523c
, reversing
changes made to 1c1c3fc2c0
.
2011-10-22 12:28:06 -07:00
Arun Agrawal
bc5d334c7a
Using middleware name to show proper name in the info
2011-10-22 19:16:43 +05:30
Arun Agrawal
4ea21b6de2
Updated rack version in docs for 3.2
2011-10-22 15:54:55 +05:30
Arun Agrawal
6d5b92c735
Rails version to 3.2.0.beta in docs
2011-10-22 15:53:11 +05:30
Arun Agrawal
50be4231e9
Middleware details updated for 3.2
2011-10-22 15:51:55 +05:30
José Valim
3c3129993a
Merge pull request #3396 from bdurand/session_cache_store
...
Add ActionDispatch::Session::CacheStore as a generic way of storing sessions in a cache
2011-10-21 23:41:15 -07:00
Brian Durand
ec93f363ca
Fix ActiveSupport::Cache::FileStore.cleanup to actually work.
2011-10-21 13:28:24 -05:00
Brian Durand
2b04c2f66e
Add ActionDispatch::Session::CacheStore as a generic way of storing sessions in a cache.
2011-10-21 13:13:29 -05:00
Pepe Hipolito
0cd93a6e2b
Fixed typo.
...
Ruby will know to look for this file at => Ruby will know how to look for this file at
2011-10-20 15:58:51 -04:00