Commit Graph

5190 Commits

Author SHA1 Message Date
Santiago Pastorino
006cef7107 Add gem 'arel' from git commented out as an example of how to Bundle egde Rails with Arel edge
[#5723 state:committed]
2010-09-29 00:14:48 -03:00
Santiago Pastorino
14d2feeeab Bump up some deps 2010-09-26 00:29:38 -03:00
Carlos Antonio da Silva
7fc1edd790 Remove deprecated stuff in ActionController
This removes all deprecated classes in ActionController related to
Routing, Abstract Request/Response and Integration/IntegrationTest.
All tests and docs were changed to ActionDispatch instead of ActionController.
2010-09-26 02:13:45 +08:00
Piotr Sarnacki
f8294cb8ba Fix app and actions generators tests
Normally Rails.application is an instance, but for those
tests Rails.application needs to be class.

Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-25 17:28:39 +02:00
Piotr Sarnacki
0134c5cc94 Refactor a few methods connected with namespacing in Rails::Generators::NamedBase
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-25 17:28:10 +02:00
Piotr Sarnacki
51c7660e08 Add namespacing to mailer generator
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-25 17:28:10 +02:00
Piotr Sarnacki
7acf64a81b Add namespacing for observer generator
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-25 17:28:10 +02:00
Piotr Sarnacki
49c3ad7f77 Add namespace for test_unit generators
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-25 17:28:10 +02:00
José Valim
e6d503bcfb Update abort message (ht: tilsammans). 2010-09-25 11:01:43 +02:00
Piotr Sarnacki
135d6164c5 Rails.application is set anyway, we don't need to set it manually, this was purpose of different behavior in tests and in application
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-25 10:46:22 +02:00
Piotr Sarnacki
00aa13bc0e Generators fix: properly check if module should be created when creating a namespaced model
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-25 10:46:22 +02:00
Jeff Kreeftmeijer
d82d98dcd5 got rid of the "ambiguous first argument; put parentheses or even spaces" warnings in the scaffold_generator tests [#4872 state:resolved]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-09-24 16:17:39 -03:00
José Valim
127da544bb Bump thor version requirement. 2010-09-24 21:03:12 +02:00
Piotr Sarnacki
bac0826b1f Refactor namespaced generators to use module_namespacing block helper
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-24 21:02:30 +02:00
Piotr Sarnacki
e83634081a Generators are not aware of namespace of isolated engines and applications
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-24 21:02:24 +02:00
Emilio Tagua
63039b9c33 Fix typo and add sanity test for code statistics rake task.
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-24 15:51:29 +02:00
Fred Wu
51e8435e34 Ensures the app generator generates the correct @app_name. [#5434 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-24 13:10:26 +02:00
David Chelimsky
672ce11d68 only abort in test_help in production env
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-24 12:52:38 +02:00
Xavier Noria
8c0c815ba7 resolves rdoc conflict 2010-09-23 22:35:08 +02:00
Aaron Patterson
92cb0b8be6 third parameter for rack must respond to each 2010-09-22 15:20:19 -07:00
Emilio Tagua
8cfc6012f4 Perf: speed up 2 methods in railties.
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-09-22 18:08:03 -03:00
eparreno
5965219ca2 some fixes in routing guide 2010-09-22 22:11:15 +02:00
Santiago Pastorino
b73d5e81ec form_for with file_field docs fixed 2010-09-22 12:39:54 -03:00
Xavier Noria
a6aa6da5dd api guidelines: adds Test::Unit and RSpec as examples of correct spelling, also advice when in doubt 2010-09-21 23:50:57 +02:00
Joost Baaij
b39dfd5936 Document form_for behaviour when using file_field inside the block 2010-09-21 15:11:04 +02:00
Piotr Sarnacki
07411ca490 List all of isolated engine changes
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-20 23:55:27 +02:00
Simone Carletti
f1fdc4ff0a Remove mention of Rails 3 deprecated option config.action_controller.use_accept_header.
See http://github.com/rails/rails/blob/v3.0.0/actionpack/lib/action_controller/deprecated/base.rb#L108-111
2010-09-20 17:27:26 +02:00
Piotr Sarnacki
dfac9b1404 Strengthen documantation on engine's migrations and seed data
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-20 10:41:12 +02:00
Piotr Sarnacki
d475de7e25 Add helper for loading seed data for engine and application
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-20 10:41:05 +02:00
Thiago Pradi
800bab79b3 Updating error message on ruby_version_check.rb
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-09-19 22:32:23 -07:00
rohit
fd53bc85e7 Send 'rails runner' help message to stdout instead of stderr.
[#5661 state:committed]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-09-19 16:45:29 -07:00
Piotr Sarnacki
e3d38e7da2 Fix running engine_test in isolation
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-19 17:10:43 +02:00
Piotr Sarnacki
ceca0c34fa Remove unnecessary puts
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-19 17:10:41 +02:00
Xavier Noria
2b6c2e947b adds to the API guidelines the proper spelling of Arel 2010-09-19 00:05:05 +02:00
David Trasbo
e808224652 Remove existing migration when using 'rails generate model' with --force [#5526 state:committed]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-18 21:22:29 +02:00
Krekoten' Marjan
d4fa120671 Move capture to Kernel. [#5641 state:resolved] 2010-09-18 20:49:36 +02:00
rohit
76266a8184 Fix output of 'rails runner --help' [#4249 state:open] 2010-09-18 20:49:33 +02:00
Diego Carrion
a63749483c updated instructions to generate the migration for the ActiveRecord session store table 2010-09-18 12:46:21 -03:00
Andrew Ferk
7329ceb1b9 Updated yaffle_test.rb from 2.2 to require 'test_helper' and extend ActiveSupport::TestCase 2010-09-18 09:53:08 -05:00
Andrew Ferk
8050d94907 Removed leading : from database.yml file 2010-09-18 09:46:32 -05:00
Andrew Ferk
a2fddff035 Updated output that should be seen from the initial rake 2010-09-18 09:45:12 -05:00
Andrew Ferk
97350eea03 Updated test_helper.rb to require the init.rb file from the correct folder 2010-09-18 09:40:14 -05:00
Andrew Ferk
8a045e3c82 removed leading : from database.yml file. dbfile has been updated to database in database.yml 2010-09-18 09:37:54 -05:00
Andrew Ferk
1b2b5a7055 rails/init.rb is deprecated, so keep init.rb in root of plugin. updated for 1.3 Organized Your Files 2010-09-18 08:58:24 -05:00
Andrew Ferk
89eef55fb3 'rails generate plugin' --with-generator option has changed to --generator. Updated the output that is seen after executing 'rails generate plugin yaffle --generator' 2010-09-18 00:41:38 -05:00
Andrew Ferk
0c6ac67d2f added 'bundle install' command to h4. Create the Basic Application 2010-09-18 00:26:49 -05:00
Carl Lerche
117daba18a Update Rails' built in routes to use RouteSet#append 2010-09-17 12:27:48 -07:00
Carl Lerche
7418a44096 Add RouteSet#append
Allows specifying blocks to the routeset that will get 	appended after the RouteSet is drawn.
2010-09-17 12:05:40 -07:00
Sparky
eeb3246991 Only add Rack::Cache to the middleware stack if config.action_controller.perform_caching is set. 2010-09-15 12:58:49 -07:00
oamblet
bda6de2722 Updated old fashion form_for samples.
when 'form_for :resource, @resource ...' is found, remove the first argument (there is no need to use the :as option when the name is the same).
2010-09-15 10:11:07 +02:00