Andrew White
5f64bce10f
Failing test for whether glob parameters accept regexps
...
[#4970 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-06-25 10:17:28 -07:00
Andrew White
3d8200318a
Add failing test case for parameters with periods
...
[#2536 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-06-25 10:12:11 -07:00
José Valim
01472b5217
Do not mark the session as loaded if an error happened while doing it.
2010-06-25 19:03:00 +02:00
José Valim
21c99e9388
Calling exists? in the session store, without checking for stale sessions, was causing the cookie store to panic because we need to unpack the whole session to get its key. This commit fixes this issue and also caches exists calls for performance improvements.
2010-06-25 12:15:17 +02:00
Carlos Antonio da Silva
b01df28413
Do not wrap hidden fields with error proc [ #4962 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-25 09:49:29 +02:00
Prem Sichanugrist
617e94658d
Make sure that Rails doesn't resent session_id cookie over and over again if it's already there [ #2485 state:resolved]
...
This apply to only Active Record store and Memcached store, as they both store only the session_id, which will be unchanged, in the cookie.
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-25 09:41:52 +02:00
José Valim
a12b76b09e
Just reading flash messages should not create a session if one does not exist yet.
2010-06-25 09:36:26 +02:00
José Valim
d69ebb849a
Avoid deserializing cookies too early, which causes session objects to not be available yet. Unfortunately, could not reproduce this in a test case.
2010-06-24 20:03:03 +02:00
Andrew White
df15ba7ead
Fix namespaced redirects [ #4389 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-24 13:26:24 +02:00
José Valim
6788db824a
Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [ #4816 state:resolved]
2010-06-24 13:23:43 +02:00
José Valim
69abbe8934
Avoid using Pathname on Resolver and AS::Dependencies.
2010-06-24 01:06:37 +02:00
Michael Lovitt
49f52c3d91
Sessions should not be created until written to and session data should be destroyed on reset.
...
[#4938 ]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-06-23 11:56:35 -07:00
David Chelimsky
32b8be9533
Expose view via the view() method in AV::TestCase::Behavior
...
- was exposed as _view, which suggested it was private
- left _view as an alias of view as not to break any extensions that are
relying on _view
[#4932 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-23 17:45:48 +02:00
David Chelimsky
0e0df4b0c5
In ActionView::TestCase::Behavior, assign variables right before
...
rendering the view.
- Previously, _assigns were locked down the first time _view was
referenced.
[#4931 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-23 15:07:44 +02:00
Jeff Dean
ac8d3e3aca
make text_field and hidden_field omit the value attribute if the developer explicitly passes in :value => nil [ #4839 state:resolved]
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2010-06-23 16:23:54 +12:00
knapo
995b1a243c
Fix controller_name for non default controller paths [ #4901 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-23 01:37:52 +02:00
José Valim
ed5c096d60
Tidy up asset tag a bit and make railties tests green again.
2010-06-23 01:34:25 +02:00
Josh Kalderimis
97b773303d
refactored the javascript asset tag helpers and moved the default scripts setup within the railtie
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-23 01:02:59 +02:00
José Valim
a6eeb0865e
Update CHANGELOG.
2010-06-23 00:52:20 +02:00
Carlos Antonio da Silva
9651ca751c
Add the :path option to match routes when given as symbols. This is specially useful in http helpers for generating routes in scenarios like:
...
resources :users, :path => 'usuarios' do
get :search, :on => :collection, :path => 'pesquisar'
end
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-23 00:49:15 +02:00
José Valim
61317b643a
Provive resources_path_names helpers in the router.
2010-06-23 00:43:25 +02:00
José Valim
e5444f84df
Stop filling the blocks scope array with nil.
2010-06-22 23:52:12 +02:00
Carlos Antonio da Silva
aacb83143f
Allow namespace accept options in routes [ #4936 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-22 23:37:49 +02:00
José Valim
fef5cf92ed
Deprecate :name_prefix in the new router DSL.
2010-06-22 23:30:19 +02:00
Paco Guzman
ec37452f68
Remove unused variable on assert_recognizes [ #4912 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-22 17:37:18 +02:00
David Chelimsky
f29fb0dd9e
update the list of instance variables that are excluded from assigns in view tests
...
[#4930 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-22 17:15:56 +02:00
RainerBlessing
70c932f794
adds minus to value part of id [ #4862 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-22 15:10:56 +02:00
Neeraj Singh
dcfb9805f2
test for #4862
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-22 15:10:49 +02:00
David Chelimsky
0576ec4ddd
Add support for specifying locals in view tests with assert template [ #4927 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-22 14:51:22 +02:00
José Valim
02399a1184
Ensure overwritten callbacks conditions in controllers work [ #4761 state:resolved] [ #3913 state:resolved]
2010-06-22 07:57:45 +02:00
Jeremy Kemper
1b369be02f
Bump rack-mount to 0.6.5 for tokenizer speedup
2010-06-21 18:28:00 -07:00
Josh Kalderimis
dad71c6099
removed 'unless const_defined?' code smell
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-21 23:34:45 +02:00
Xavier Noria
207fa59675
Merge remote branch 'rails/master'
...
Conflicts:
actionpack/lib/abstract_controller/base.rb
2010-06-20 23:13:19 +02:00
Rizwan Reza
c20cfe477a
Take out documentation from DeprecatedMapper to discourage its usage.
2010-06-21 01:02:25 +04:30
Rizwan Reza
3ec7b1cba3
Use h1 for titles.
2010-06-21 01:00:42 +04:30
Rizwan Reza
ab7830d66c
Final touches and fixes.
2010-06-21 00:56:31 +04:30
Rizwan Reza
96b927d9db
Action View is now titled.
2010-06-21 00:50:26 +04:30
Rizwan Reza
1a0dc267f1
Action View is now titled.
2010-06-21 00:50:08 +04:30
Paco Guzman
46dd8af179
Update integrated logging format
2010-06-20 19:36:46 +02:00
José Valim
772c2b0b86
Use the new ActiveSupport::FileUpdateChecker instead of RoutesReloader.
2010-06-20 13:37:58 +02:00
Thibaud Guillaume-Gentil
5522578d16
Fixed date_select date_separator when discard_month and/or discard_day are true [ #4856 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-20 12:33:02 +02:00
Carlos Antonio da Silva
f9abbf9a4d
Adding missing test to autolink with other protocols (file) [ #4886 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-20 12:32:41 +02:00
Jan De Poorter
96f5e59a26
Make sure a namespaced <%= render form %> still renders the _form partial [ #4784 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-20 00:58:10 +02:00
Tarsoly András
bb6cd6d3ec
Use Rack::Utils.bytesize when calculating content-length of exception pages. [ #4727 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-20 00:52:35 +02:00
rohit
95a8f252c0
remove executable permission from files that don't need it. [ #4802 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-20 00:50:48 +02:00
David Chelimsky
86002a0dfe
Support render_template in view tests. Useful for specifying which
...
partials are rendered under different conditions.
[#4903 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-20 00:26:42 +02:00
Andrew White
1f84061c5c
Don't use module to work out shallow name prefix and path as it may not accurately reflect the actual namespace [ #4899 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-20 00:15:48 +02:00
Andrew White
ed3f042e99
Make polymorphic_url and scaffolding work with uncountable resources [ #3930 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-20 00:15:41 +02:00
Andrew White
65ce3d1297
Accept an object for :constraints option [ #4904 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-20 00:15:30 +02:00
José Valim
72725d7b7f
Merge branch 'master' of github.com:rails/rails
2010-06-20 00:12:54 +02:00