Richard Hart
e43de58ab4
Updating routing namespace examples to use symbols and not strings.
2010-10-19 13:40:47 +01:00
Santiago Pastorino
460c4efd71
Merge CHANGELOGs from 3-0-stable
2010-10-18 12:24:41 -02:00
Dallas Taylor
2c3c0bcbab
Added :file as a possible value when configuring actionmailer
2010-10-18 18:55:02 +11:00
Neeraj Singh
ea14396c45
replace if ! with unless
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-10-17 12:26:32 -02:00
Santiago Pastorino
b44e2abd9f
Bump bundler up to 1.0.3
2010-10-16 14:36:25 -02:00
Santiago Pastorino
66f805a969
JQuery updated to 1.4.3
...
Check out http://blog.jquery.com/2010/10/16/jquery-143-released/ for
information on what's new.
2010-10-16 12:30:34 -02:00
Rajinder Yadav
62eb00a62e
Merge branch 'master' of git://github.com/lifo/docrails
2010-10-15 22:19:39 -04:00
Rob Zolkos & Xavier Noria
bc1bcddede
implements weeks_ago and prev_week for Date/DateTime/Time [ #5122 state:committed]
2010-10-16 02:23:23 +02:00
Santiago Pastorino
4bfe30ca2f
delete from :number until the end
2010-10-15 21:09:32 -02:00
Piotr Sarnacki
b0157f8d04
Removed duplicated method find_root_with_flag
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-10-15 13:17:36 -02:00
Xavier Noria
21ff8849bb
in regexps, the dot in a character class is not a metacharacter
2010-10-15 16:31:00 +02:00
Rob Zolkos
cffae06a4f
remove Mongrel from debugger docs
2010-10-15 23:38:31 +11:00
Rob Zolkos
ebe61bf37c
WEBrick is the default web server, not Mongrel [ #186 state:resolved]
2010-10-15 21:40:32 +11:00
Neil Middleton
8be96a3bcf
Fixed casing of JavaScript (and RJS) [ #183 state:resolved]
2010-10-14 23:12:25 +01:00
Nick Quaranto
a18cefbc3a
Fixing a small typo in the generators guide
2010-10-14 17:24:59 -04:00
Xavier Noria
13f7f89bda
Merge branch 'master' of git://github.com/lifo/docrails
2010-10-14 23:15:23 +02:00
José Valim
c7aea81a39
Comment internal railties tasks.
2010-10-14 08:37:03 +02:00
Piotr Sarnacki
11558a11fe
Use railtie_name to correctly get name from plugins
2010-10-14 07:46:12 +02:00
Piotr Sarnacki
72545da091
Remove task for creating symlinks for railties
2010-10-14 07:46:12 +02:00
Piotr Sarnacki
a2c52f1004
Update documentation for new tasks
2010-10-14 07:46:12 +02:00
Piotr Sarnacki
43215de208
Add task foo:install (where foo is plugin) as a shortcutinstall:migrations and foo:install:assets
2010-10-14 07:46:12 +02:00
Piotr Sarnacki
959f8576f2
Added foo:install:assets task that copies assets from plugins public directory to application's public directory
...
This is the most simple and naive approach: just copy every files from engine to app.
The only exception is when file has changed, in that case developer will be
asked if he wants to rename the field.
There is no need to make this task more sophisticated as 3.1 will be shipped
with better assets handling and it will be the default way to handle things.
2010-10-14 07:46:12 +02:00
Piotr Sarnacki
f07cbec865
Do not treat information about skipped migrations as WARNINGs but as a NOTEs, also puts to stdin
2010-10-14 07:46:12 +02:00
Ryan Bigg and Xavier Noria
cfb1ba023b
Use <em> rather than underscores to fix display issue with 4.1.1.1 in the asssociation basics guide
2010-10-14 08:12:25 +11:00
Ugis Ozols
a37e1a6a69
Removed miscelenous letters.
2010-10-13 23:31:37 +03:00
Xavier Noria
879cac5d76
getting started guide: deletes orphan <% end %>, reported by Michael L. Miller
2010-10-12 23:06:55 +02:00
Xavier Noria
2561c6ae64
fixes spelling of jQuery and Prototype
2010-10-12 22:57:13 +02:00
Santiago Pastorino
933f745dcb
Railties changelog updated with -j parameter
2010-10-11 20:31:14 -02:00
siong1987
708e09448b
-j parameter added to rails new command.
...
Now you can start your apps with jquery with rails new myapp -j jquery, the default is still prototype
[#5613 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-10-11 19:47:53 -02:00
Xavier Noria
21a92b8d01
Merge branch 'master' of git://github.com/lifo/docrails
2010-10-11 12:06:21 +02:00
José Valim
a8b1780410
Updated DOCS for engines and added a couple TODOs. Also, commented internal railties rake tasks description.
2010-10-11 10:29:31 +02:00
Philip R. Dutton
70ad6e499f
I corrected a code snippet typo in the railties/guides/source/initialization.textile file [ #5779 state:resolved]
2010-10-11 13:55:58 +11:00
Ryan Bigg
ef74ad8e0c
Remove mention to register_javascript_include_default in documentation
2010-10-11 13:28:50 +11:00
Utkarsh Kukreti
7d08116222
Fix typo 'configation' [ #5575 state:resolved]
2010-10-11 12:12:36 +11:00
José Valim
621df2a1ec
Merge remote branch 'drogus/engines'
2010-10-10 14:57:19 +02:00
José Valim
cba395dab9
Update CHANGELOG.
2010-10-10 12:43:26 +02:00
David Calavera
ab2f2b22a6
prevent rake test to run the test suite three times when ENV['TEST'] is set [ #3572 state:resolved]
...
Signed-off-by: Xavier Noria <fxn@hashref.com>
2010-10-10 12:22:40 +02:00
Piotr Sarnacki
a9bf91ea56
Add 'foo:install:migrations' task to copy migrations from foo engine
2010-10-09 22:31:26 +02:00
Piotr Sarnacki
b417cfbf01
Load rake tasks defined in superclasses in context of railties
2010-10-09 21:32:34 +02:00
Piotr Sarnacki
8636f64def
Rename rake railties:copy_migrations to rake railties:install:migrations and fix it to work with new copying strategy
2010-10-09 21:32:34 +02:00
Piotr Sarnacki
5d5eb2b18d
Rename namespace method to isolate_namespace.
...
This change caused by confusion caused by calling engine
"namespaced". Stuff inside engine can be namespaced for every
engine. This method is not actually namespacing anything, it's
isolating engine within the given namespace.
2010-10-09 21:32:34 +02:00
Santiago Pastorino
afd76d7fe9
Fix error in routing guide edit_photo_path needs the id as param
2010-10-09 14:50:25 -02:00
Santiago Pastorino
6286629aca
This test is not only testing config/database stuff anymore
2010-10-09 13:36:54 -02:00
Aditya Sanghi
36862511e0
test that skip active records does not load fixtures
...
[#4104 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-10-09 13:31:37 -02:00
Santiago Pastorino
e7f911d5ca
Test if test/performance/browsing_test.rb exists when --skip-activerecord is used
...
[#4104 ]
2010-10-09 13:11:26 -02:00
Juan Maiz
b439c14516
Fixing two minor errors in Rails::Generators::Actions initializer method comments
...
[#5771 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-10-08 19:19:17 -02:00
Santiago Pastorino
e9793c60b6
Makes this code a bit more clear
2010-10-08 15:15:12 -02:00
Ryan Bigg
5826c17307
Remove the final initializers since initializers += will return it anyway. [ #3892 state:resolved]
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-10-08 15:15:08 -02:00
Piotr Sarnacki
e68c87bb65
Fix engines test
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-10-08 18:23:32 +02:00
Piotr Sarnacki
08f4713dba
Refactored routes reloading to use RouteSet#append instead keeping block in Engine
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-10-08 18:23:25 +02:00
José Valim
a0e482e807
Ensure rack body responds to each.
2010-10-08 09:29:07 +02:00
Vesa Vänskä
c3c6f58ffb
Fixed rake task description typo
2010-10-08 15:14:10 +08:00
Ryan Bigg
1e63a05d28
Add "a" to make it better English
...
[#3796 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-10-07 11:40:57 -02:00
Xavier Noria
db520042b3
Merge branch 'master' of git://github.com/lifo/docrails
2010-10-06 23:16:13 +02:00
Thomas McDonald
3ca6988b78
Fixed typo in engine documentation
2010-10-06 22:11:03 +01:00
Rafael Mendonça França
a0552d653b
Fixes typo
2010-10-06 12:55:16 -03:00
José Valim
d649bf158b
Provide a cleaner syntax for paths configuration that does not rely on method_missing.
2010-10-06 17:20:15 +02:00
wycats
d40ca9cce2
Some initial docs
2010-10-06 03:06:12 -07:00
wycats
0904e82568
Delegate everything to the generator
2010-10-06 02:58:49 -07:00
wycats
848eb0d777
Revert "Clean up the builder abstraction in AppGenerator."
...
The phrase "clean up" misrepresents the fact that this removes
a feature that ships with Rails 3.0.
This reverts commit 6774e12afa0f29442aa612ddf6e51d5a1b7a4356.
2010-10-06 02:53:00 -07:00
José Valim
6774e12afa
Clean up the builder abstraction in AppGenerator.
...
This commit may be reverted once documentation and a proper way to handle actions are added.
2010-10-06 11:13:57 +02:00
Aditya Sanghi
ae812e9fc9
adding test for namedspaced mailers
2010-10-06 19:45:13 +11:00
Xavier Noria
3b7d48cc45
a couple of touches to the guides guidelines
2010-10-05 22:52:43 +02:00
Xavier Noria
da34ee423f
aaaaannnddd, your beloved typo only spotted in the github colored diff no matter how many passes you did before pushing
2010-10-05 19:38:05 +02:00
Xavier Noria
360a878070
new guide: Ruby on Rails Guides Guidelines
2010-10-05 19:34:27 +02:00
José Valim
68d75c3365
Don't expect an AD::Response object back from the app.
2010-10-05 09:55:51 +02:00
José Valim
4a4ff148ff
Use RbConfig instead of Config for 1.9.3 compatibility.
2010-10-05 09:48:32 +02:00
José Valim
848e48ec9c
Link to rack from github for this while.
2010-10-04 18:08:03 +02:00
José Valim
10d014acb8
Update to Thor 0.14.3.
2010-10-04 13:46:37 +02:00
Rajinder Yadav
018bf0f575
added more items to the set to improve explanation of validates_exclusion_of
2010-10-04 00:02:09 -04:00
Rajinder Yadav
0da0aa4cd9
corrected wording for better reading, fixed ugly intented quote by using code tags
2010-10-03 20:41:56 -04:00
Piotr Sarnacki
adfd43a4da
Add documentation on app_generators
2010-10-03 23:32:03 +02:00
José Valim
74dd8a3681
Move ETag and ConditionalGet logic from AD::Response to the middleware stack.
2010-10-03 21:25:22 +02:00
Nicholas E. May (on Enterprise)
467d20c897
Section 6, table, typo (extra '.rb')
2010-10-03 00:37:15 -05:00
Nicholas E. May (on Enterprise)
bcc103367b
Section 4.3, wrong word used: 'contact' => 'content'
2010-10-02 23:05:08 -05:00
Nicholas E. May (on Enterprise)
ab7b99f150
Section 3.3: '# bundle install' instead of just 'bundle install'
2010-10-02 22:43:45 -05:00
Nicholas E. May (on Enterprise)
ffe24354cc
Section 3.2, table: 'README.rdoc' -> 'README'
2010-10-02 22:26:26 -05:00
Nicholas E. May (on Enterprise)
a72edab3b3
Removed unnecessary 'the' in the '2.2.9 Active Suport' section of Getting Started.
2010-10-02 21:57:01 -05:00
José Valim
49cc01002e
Be more explicit about what is deprecated.
2010-10-02 09:40:54 -07:00
José Valim
04cbabb0a0
Deprecate generators in Railties. You should use app_generators instead.
2010-10-02 18:38:23 +02:00
José Valim
757bbd540c
:'' is not valid ruby.
2010-10-02 18:30:38 +02:00
José Valim
7b0c592e38
reload_routes! is part of the public API and should not be removed.
2010-10-02 17:45:26 +02:00
José Valim
609849a0f1
Fix a routing test. Reorganize middleware tests.
2010-10-02 17:42:36 +02:00
Xavier Noria
542ddd8c89
brings csrf_meta_tags back to the generated layout
...
After more discussion, it has be agreed that this kind
of changes within reasonable margins are OK for 3.1.
That is, it is fine to change a little bit the generators
even if that means examples in existing books won't be
exact. (Note that the singular csrf_meta_tag exists as an
alias and thus those outdated examples will run, same for
existing applications.)
2010-10-02 00:10:32 +02:00
Neeraj Singh
33733d5d1d
no need to check for nil
2010-09-30 23:59:09 +08:00
Jaime Iniesta
ef554156c4
Action Mailer Basics guide - reformatted configuration table
2010-09-30 12:23:52 +02:00
Jaime Iniesta
ae65a1f1df
Action Mailer Basics guide - fixed typos
2010-09-30 12:11:51 +02:00
José Valim
6b248f6ea5
Add more information to comments.
2010-09-30 10:33:31 +02:00
Piotr Sarnacki
9f569c60ad
Try to guess application's directory while trying to run the server, but only if config.ru is not present in current dir
2010-09-30 10:27:55 +02:00
Piotr Sarnacki
3049e645e5
Moved Rails::RoutesReloader to Rails::Application::RoutesReloader
2010-09-30 09:47:06 +02:00
Piotr Sarnacki
6648babded
Allow running generators for Engine with usage of other application.
...
After that commit, developers can set ENGINE_PATH in ENGINE/scripts/rails
file and load application's ./script/rails (most of the time it will be
dummy application used for testing). When running ./script/rails g it will
use application to boot up, but then it will use Engine's root and
configuration for generators.
2010-09-30 09:47:06 +02:00
Piotr Sarnacki
f851352318
Added config.app_generators to allow configuring application's generators from railties.
...
With config.generators becomes a way to configure generators
for current instance only. For example:
module Blog
class Engine < Rails::Engine
config.generators do |g|
g.orm :active_record
end
config.app_generators do |g|
g.test_framework :rspec
end
end
end
such definition sets :active_record as orm for engine and :rspec
as test_framework for application. The values set with app_generators
can be overwritten in application using config.generators as you would
normally do:
module MyApp
class Application < Rails::Application
config.generators do |g|
g.test_framework :test_unit
end
end
end
2010-09-30 09:47:06 +02:00
Piotr Sarnacki
57aa79e6be
Move routes_reloader to a class: RoutesReloader
2010-09-30 09:47:06 +02:00
Piotr Sarnacki
ec5d846ac6
Properly reload routes defined in class definition
...
Sometimes it's easier to define routes inside Engine or
Application class definition (e.g. one file applications). The
problem with such case is that if there is a plugin that
has config/routes.rb file, it will trigger routes reload on application.
Since routes definition for application is not in config/routes.rb
file routes_reloader will fail to reload application's routes
properly. With this commit you can pass routes definition as a block
to routes method, which will allow to properly reload it:
class MyApp::Application < Rails::Application
routes do
resources :users
end
end
2010-09-30 09:47:05 +02:00
Piotr Sarnacki
74598fe7e9
Do not overwrite _railtie method on namespace while creating isolated engine or application.
...
In order to run Engine as standalone application, you will need
Rails::Application instance in the same namespace that engine
one. It's very important to leave _railtie bound to whatever
used "namespace" method first.
2010-09-30 09:47:05 +02:00
Xavier Noria
a617f6bc4c
Merge branch 'master' of github.com:lifo/docrails
2010-09-29 20:26:42 +02:00
Joost Baaij
b1acba7bb8
Cleanup of the References section.
...
Removed non-functional links.
Removed links to API documentation.
Removed link to Rails 2 material.
Renamed "References" to "Further Reading".
2010-09-29 15:56:16 +02:00
Joost Baaij
3c620bed8c
Removed obsolete "advanced" plugin URLs.
...
These plugins are obsolete even for Rails 2, they have no place in a Rails 3 guide.
Also removed "mad cool" reference.
If anyone has ideas about cache plugins that *must* be included, I would love to know.
As far as I am concerned the rails guides should stick to built-in methods and have a
simple list of references for people wishing to investigate further.
I will check out the references after this commit to see if they're up to date.
2010-09-29 15:51:09 +02:00
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
Aditya Sanghi
de880302bd
review comments
2010-09-25 15:04:25 +05:30
Aditya Sanghi
db8b3e71dc
add section about email with name
2010-09-25 14:49:28 +05:30
José Valim
e6d503bcfb
Update abort message (ht: tilsammans).
2010-09-25 11:01:43 +02:00
Aditya Sanghi
c94e92e2b0
Add section about multiple recipients
2010-09-25 14:31:19 +05:30
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
Kulbir Saini
b1603990df
Fixed routing examples in Routing guide. Updated URL to RoutingAssertions module.
2010-09-25 06:24:27 +05:30
Kulbir Saini
f488499c26
Updated 'Action Controller Overview' guide to rails 3 and fixed a few URLs throwing 404s.
2010-09-25 05:06:10 +05:30
Kulbir Saini
c941cba170
Updated all forms to accept UTF-8 encoding in Form Helpers guide wrt Rails 3.
2010-09-25 03:03:22 +05:30
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
Kulbir Saini
34908e3aef
Merge branch 'master' of git@github.com:lifo/docrails
2010-09-24 07:15:00 +05:30
Kulbir Saini
b93c018947
Minor rephrasing in Active Record Quering and Layouts and Rendering guides.
...
Example code fixes in Layouts and Rendering guide.
2010-09-24 07:13:40 +05:30
Pedro Fayolle
78d140d06d
Fixed typo (CategoriesControlleR -> CategoriesControlleR).
2010-09-23 18:26:21 -07:00
Kulbir Saini
d24914c2e8
Fixes in associations_basics guide.
2010-09-24 04:27:51 +05:30
Kulbir Saini
948248a23d
Updated guide to use ActiveRecord::Base.where instead of ActiveRecord::Base.find.
...
Added `where` as a method to has_many and has_and_belongs_to_many collections.
2010-09-24 04:04:39 +05:30
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
Fred Wu
cedc49dbd3
Updated the Cache Money repo link to one that works with Rails 3.
2010-09-15 14:22:43 +10:00
Jamison Dance
50b175030a
fixed an unclear description in Sigular Resources.
2010-09-14 17:14:16 -06: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
Piotr Sarnacki
434139f89f
Documented mounted helpers
2010-09-03 22:59:12 +02:00
Piotr Sarnacki
1a161c75ed
Document engine_name
2010-09-03 22:59:11 +02:00