Vijay Dev
8750c9a1cf
fix markups for plus in AR guide
2011-11-06 18:59:29 +05:30
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
Akira Matsuda
7102a3d7fc
move Rails console top level methods to IRB context
2011-11-04 05:31:47 +09: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
Pepe Hipolito
48e1f8ba4c
Fixed typo.
...
a long the way => along the way
2011-10-20 15:37:35 -04:00
Vijay Dev
af1b5c54cf
Merge branch 'master' of github.com:lifo/docrails
2011-10-20 23:20:44 +05:30
Ryan Bigg
ee1223c1ee
[engines guide] explanation of overriding views + referencing routes from an engine within an application
2011-10-20 18:30:50 +11:00
Arun Agrawal
5c5d5b3d25
Adding ActionDispatch::RequestId in middleware test
2011-10-20 12:59:27 +05:30
Ryan Bigg
13e6f0cea8
[engines guide] some fixes for the author id migration including proof of not copying over other migrations again
2011-10-20 17:32:48 +11:00
Ryan Bigg
3e2d35b050
[engines guide] add missing end for to_s method
2011-10-20 17:10:46 +11:00
José Valim
4e9729df3f
Don't use :path in Gemfile for --dev except for Rails.
2011-10-20 00:38:58 +02:00
Ryan Bigg
1cc6105d4d
[engines guide] wrap up 'Configuring an Engine' section
2011-10-20 08:48:06 +11:00
Ryan Bigg
8ede74e73a
[engines guide] Rather than calling name, require a to_s method to be defined on the 'User' class
2011-10-20 08:48:06 +11:00
Ryan Bigg
9694ca1a3b
[engines guide] mention that we cover similar ground to the Getting Started Guide
2011-10-20 08:48:05 +11:00
David Heinemeier Hansson
be27bf17e3
Fix the proper production.rb
2011-10-19 16:24:00 -05:00
David Heinemeier Hansson
1359152345
Encourage use of tagged logging even when using a different logger
2011-10-19 16:17:06 -05:00
José Valim
c83d9a11c0
Unify logger and taggedlogging middleware as both address logging concerns.
2011-10-19 22:39:11 +02:00
David Heinemeier Hansson
4a4927f753
Simplify TaggedLogging symbol shortcuts (thanks Jose!)
2011-10-19 13:24:28 -05:00
David Heinemeier Hansson
afde6fdd5e
Added X-Request-Id tracking and TaggedLogging to easily log that and other production concerns
2011-10-19 12:59:33 -05:00
Jeremy Kemper
3a746f7c48
Use toplevel Rack::ContentLength
2011-10-19 12:31:06 -05:00
Andy Lindeman
044e6ac245
Fixes the defaults for config.cache_classes
2011-10-18 23:45:56 -03:00
Santiago Pastorino
d44702c830
Use again Rack's ContentLength middleware part 2
2011-10-18 16:14:38 -02:00
Santiago Pastorino
7f184aaf43
Use again Rack's ContentLength middleware
2011-10-18 16:04:15 -02:00
steve
40d1555091
Added test for rake environment in an engine
2011-10-18 17:11:50 +01:00
Steven Anderson
c547e968f5
Added environment rake task to engines
2011-10-18 15:46:39 +01:00
Rahul P. Chaudhari
d21405a07c
Added test case for postgresql database
2011-10-18 11:37:33 +05:30
José Valim
59d6df5c69
Merge pull request #3151 from zenprogrammer/pluralize_without_count
...
Added include_count parameter to pluralize.
2011-10-17 07:02:39 -07:00
Pascal Lindelauf
86919a6da1
Clarified that the config.assets.initialize_on_precompile directive needs to be set in application.rb
2011-10-17 14:45:45 +02:00
Ryan Bigg
cb95cca026
[engines guide] missed a spot in the 'Using a class section' + further text for 'Configuring an engine' section
2011-10-17 20:26:37 +11:00
Ryan Bigg
518b30cf48
[engines guide] Point out that we need to run rake db:migrate after creating user model
2011-10-17 20:25:45 +11:00
Ryan Bigg
7d8c650e86
[engines guide] [reviewing] remove excessive 'Now'
2011-10-17 17:12:31 +11:00
Ryan Bigg
5bf0ea6830
[engines guide] Complete section about using an application's class
2011-10-17 08:55:32 +11:00
Ryan Bigg
434148024d
[engines guide] beginning to cover using application's classes
2011-10-16 20:17:53 +11:00
Ryan Bigg
0f87cc1486
[engines guide] Add 'Engine setup' section in 'Hooking into an application' section
2011-10-16 20:17:53 +11:00
Ryan Bigg
bb8ee9264f
[engines guide] improve intro to 'Hooking into an application' section
2011-10-16 20:17:53 +11:00
mhutchin
abf4f096e5
[layouts and rendering] Copy editing
2011-10-15 15:59:26 -07:00
Karunakar (Ruby)
4867bfabaa
more doc changes on railties README
2011-10-16 01:12:00 +05:30
Karunakar (Ruby)
018e84af20
railties README change to make consistent like others eg:activerecord
2011-10-16 01:00:57 +05:30
mhutchin
26204def8f
[layouts and rendering] Copy editing to improve readability
2011-10-15 05:32:13 -07:00
José Valim
098c95abcb
Merge pull request #3320 from sunaku/space-align
...
fix inconsistent alignment in Gemfile generator
2011-10-15 01:56:30 -07:00
Vijay Dev
e759c8882a
Merge branch 'master' of github.com:lifo/docrails
2011-10-14 22:21:40 +05:30
Vijay Dev
e2a3952428
Merge pull request #72 from pote/master
...
small fix
2011-10-14 03:08:08 -07:00
Ryan Bigg
6df79bf580
[engines guide] WIP for explaining how to hook engine into application
2011-10-14 18:44:39 +11:00
Ryan Bigg
aae77d2839
[engines guide] complete comments resource generation
2011-10-14 18:44:39 +11:00
Ryan Bigg
3d192c7385
[engines guide] Add heading for comments
2011-10-14 18:44:39 +11:00
Ryan Bigg
2c8b8ce9ee
[engines guide] make clear that the comment generator command is just one line
2011-10-14 18:44:39 +11:00
Ryan Bigg
2101bc9fd0
[engines guide] make it clear that the scaffold generator output isn't part of the actual command
2011-10-14 18:44:39 +11:00
Ryan Bigg
690dd2f64c
[engines guide] correct render line is blorgh/comments/form
2011-10-14 18:44:39 +11:00
Ryan Bigg
411613ab20
[engines guide] improve wording for sentence describing comments/form partial
2011-10-14 18:44:38 +11:00
PoTe
dadfa1e34f
security reasonS should be plural
2011-10-13 22:31:32 -02:00
Suraj N. Kurapati
d32a90b9b7
fix inconsistent alignment in Gemfile generator
2011-10-13 15:36:50 -07:00
Ryan Bigg
66b2dc059f
[engines guide] don't show actual timestamp in migration generation
2011-10-13 18:06:00 +11:00
Ryan Bigg
e537a3fcb1
[engines guide] change comments resource generation
...
Totally didn't like where this section was going, so scrapped it.
Scaffold is great for some things (lol) but nested resources is definitely not one of them.
Best to walk people through how to do it right, as they would in the real world
2011-10-13 18:06:00 +11:00
Rahul Chaudhari
dc3f33eb60
Added test to check that the vendor/assets/stylesheets directory is created
2011-10-13 12:17:19 +05:30
Vijay Dev
e6b2e7fbea
refactor guide example
2011-10-13 02:17:01 +05:30
José Valim
f6c9349565
Merge pull request #3287 from sgerrand/vendor_assets_javascripts_should_be_created
...
Ensure that the directory 'vendor/assets/javascripts' is created by AppGenerator
2011-10-12 11:37:09 -07:00