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
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
Xavier Noria
dd6efe98b6
Merge remote branch 'docrails/master'
2010-09-14 20:07:29 +02:00
rohit
b59a8d42c3
Application settings are specified in application.rb and not environment.rb
2010-09-14 10:07:34 +05:30
Xavier Noria
0207bc7cc9
get csrf_meta_tag back to the generated layout in deference to existing printed material, chomp also the generated HTML to be faithful to the output before the refactor
2010-09-14 01:35:44 +02:00
Carlhuda
d8d8334a0b
Update changelog
2010-09-13 16:06:40 -07:00
Carlhuda
0fe99e87c0
Add tests for Rack::Cache
2010-09-13 16:06:03 -07:00
wycats
254ab7d916
First pass at Rack::Cache
2010-09-13 16:06:03 -07:00
Rohit Arondekar
3683745cbc
Guides: Add test directory to load path to run individual test files.
2010-09-12 21:05:10 -07:00
Piotr Sarnacki
11710c0d7d
Fix routing test
...
Signed-off-by: Mikel Lindsaar <raasdnil@gmail.com>
2010-09-11 23:26:17 +10:00
Xavier Noria
a87b92db7b
revises implementation and documentation of csrf_meta_tags, and aliases csrf_meta_tag to it for backwards compatibilty
2010-09-11 11:05:00 +02:00
wycats
f6153f74da
Merge remote branch 'drogus/engines'
2010-09-11 03:24:50 -05:00
Piotr Sarnacki
497b6af881
Set default asset_path only for engine
2010-09-10 17:20:16 +02:00
Simon Jefford
7fae0aa4ac
Add configuration option for tld length
2010-09-09 18:26:35 -07:00
Mikel Lindsaar
d73b47fc22
Fixing up rails application init command - Rails Guides ticket 32
2010-09-09 23:08:01 +10:00
Piotr Sarnacki
36fcb776dd
Fix warning by removing |map| from routes.draw
2010-09-08 19:28:00 +02:00
Piotr Sarnacki
6258f7c972
Change app to main_app in mounted_helpers
2010-09-08 19:27:59 +02:00
ISHIKAWA Takayuki
816ea74c8e
revision of typo: crytographically [ #5566 state:resolved]
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-09-07 11:03:37 -03:00
Piotr Sarnacki
32157a2dd2
Add documentation on serving assets from engine strategies
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-06 17:09:31 +02:00
Piotr Sarnacki
7c78cc3cca
Use railties:copy_migrations instead of db:copy_migrations
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-06 14:38:45 +02:00
Piotr Sarnacki
ec6fa6d3ef
Modified changelog for 3.1.0
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-06 14:38:41 +02:00
Piotr Sarnacki
24d2d6726e
Added task for creating symlinks to engines' public directories
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-06 14:38:36 +02:00
Carlos Antonio da Silva
11fccc5f06
Cleanup deprecation warnings in Action Controller
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-06 13:40:45 +02:00
Carlos Antonio da Silva
7204bb0feb
Remove deprecation warnings in railties
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-06 13:38:12 +02:00
Piotr Sarnacki
e6b93fa6db
Removed deprecated router API from railties
2010-09-05 13:44:37 +02:00
José Valim
f9c21ce658
Remove more deprecated behavior from plugins.
2010-09-04 01:11:22 +02:00
José Valim
6f194bb3a9
Small tidy up on Rails::Engine.
2010-09-04 00:52:07 +02:00
Piotr Sarnacki
ffa2acad5c
Fixed tests after rebase
2010-09-03 22:59:16 +02:00
Piotr Sarnacki
9af189ac8f
I've changed that test along the way, it should actually stay without changes
2010-09-03 22:59:16 +02:00
Piotr Sarnacki
6c906bf591
Use default_scope in isolated Engines to not force user to scope his routes
2010-09-03 22:59:15 +02:00
Piotr Sarnacki
b43b686b02
engines_blank_point should always be the last initializer in Engine
2010-09-03 22:59:15 +02:00
Piotr Sarnacki
a5e509d6b1
We should avoid creating additional initializers when we can, adding them makes boot process slower
2010-09-03 22:59:15 +02:00
Piotr Sarnacki
6f3119d3c2
Remove namespace for isolated namespaced models in forms
2010-09-03 22:59:15 +02:00
Piotr Sarnacki
34cd8a68b1
Add some more docs on polymorphic_url with routes proxy
2010-09-03 22:59:14 +02:00
Piotr Sarnacki
613cbe1f00
Add possibility to explicitly call engine's routes through polymorphic_routes, for example: polymorphic_url([blog, @post])
2010-09-03 22:59:13 +02:00
Piotr Sarnacki
16dcaf8368
Updated tests to use scope(:module => :engine_name) instead of namespace and updated mounted engine tests to actually use the namespacing
2010-09-03 22:59:13 +02:00
Piotr Sarnacki
e35c2043b1
Include all helpers from non-namespaced engines
2010-09-03 22:59:13 +02:00
Piotr Sarnacki
8fb9df535e
Modified polymorphic_url to check for model's namespace
...
This change allows using namespaced models with polymorphic_url,
in the way that you would use them without namespace.
Let's say that you have Blog::Post model in namespaced Engine. When you use
polymorphic_path with Blog::Post instances, like in form_for(@post),
it will look for blog_posts_path named url helper. As we are inside Blog::Engine,
it's annoying to always use the prefix. With this commit, blog_ prefix will be
removed and posts_path will be called.
2010-09-03 22:59:12 +02:00
Piotr Sarnacki
8284fd3855
Get rid of static_paths method and instead configure paths for ActionDispatch::Static in initializers
2010-09-03 22:59:12 +02:00