Andrew White
6b52a58f72
Move regexps in options hash to :constraints hash so that they are pushed into the scope [ #5208 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-19 15:09:46 -03:00
Andrew White
1031fe1478
Move edit route before show route so that it will have precedence if the :id parameter allows slashes [ #5409 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-19 15:09:40 -03:00
wycats
06632578c2
Revert "It's snowing!"
...
This reverts commit e4283007d6 .
2010-08-18 16:49:34 -07:00
Javier Martín
12f7f7a714
Don't pluralize resource methods [ #4704 state:resolved]
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-08-18 13:58:21 -03:00
Andre Arko
c40856c46c
Allow member actions (get, etc) to accept strings, with test
2010-08-18 07:36:49 +08:00
Xavier Noria
5f5c508444
code gardening: we have assert_(nil|blank|present), more concise, with better default failure messages - let's use them
2010-08-17 03:31:39 +02:00
Subba Rao Pasupuleti
dbe5ae488e
select tags coerce the :selected option, options to strings before comparison [ #5056 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-15 16:54:31 -03:00
Bryce Thornton
1091a6e9b7
Allow for any possible TLD when using the :all option with the cookie session store. This works for subdomain.mysite.local, google.co.uk, google.com.au, etc. [ #5147 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-15 16:54:31 -03:00
Mikel Lindsaar
88fc37ff03
Making time_zone_options_for_select return a html_safe string
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-08-15 09:59:24 -03:00
Santiago Pastorino
677564f8f7
object/try should be required after abstract_unit to have AS in the load path
2010-08-14 18:34:15 -03:00
Santiago Pastorino
3270c58ebb
Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;)
2010-08-14 04:20:06 -03:00
Jeremy Kemper
e4283007d6
It's snowing!
2010-08-12 13:32:39 -07:00
wycats
f2d22ecbb3
Replace snowman with utf8=✓
2010-08-11 18:37:06 -07:00
José Valim & Carlos Antonio da Silva
1fbcd5f5fc
layout_for works again with objects as specified in the documentation and Rails 2.3 [ #5357 state:resolved]
2010-08-11 10:27:11 -03:00
wycats
dd7e872e85
Properly deprecate register_javascript_include_default and reset_javascript_include_default
2010-08-09 12:42:09 -07:00
wycats
f85b206e7a
rename _snowman to _e
2010-08-09 12:06:51 -07:00
Xavier Noria
efb2bd0409
adds missing requires for Object#try
2010-08-09 15:14:00 +02:00
Xavier Noria
28d82bd2e9
adds URL to the body generated by the redirect macro in the routes mapper as per the RFC, extracts common test pattern into a test macro, adds a test to cover the :status option
2010-08-09 13:32:45 +02:00
Piotr Sarnacki
4da32babdf
Reload action_methods in AbstractController after defining new method.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-04 14:45:55 -03:00
Santiago Pastorino
111234e7c1
Use AS::OrderedHash when trusting in the order of the hash
2010-08-01 21:56:06 -03:00
Carlos Antonio da Silva
11614bddc0
Fix label form helper to use I18n and html options, without the need of 'nil' text param:
...
Before: f.label :title, nil, :class => 'title'
After : f.label :title, :class => 'title'
[#5267 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-08-01 21:51:54 -03:00
Santiago Pastorino
fb0bd8c109
Makes form_helper use overriden model accessors
...
[#3374 state:committed]
2010-08-01 19:32:22 -03:00
Rodrigo Dominguez
aa054c35f7
link_to_function now expects a piece of javascript code for the onclick parameter
...
[#5179 ]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-07-29 13:11:53 -03:00
Łukasz Strzałkowski
da845275dd
Removed deprecated APIs in text and number helpers [ #5156 state:resolved]
...
They're deprecated since 2008. It's time to get rid of them.
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-26 17:26:59 +02:00
Carlos Antonio da Silva
751f89b8b2
Add assertion to link_to_function test with block and capture, and more expressive test name [ #5179 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-25 23:00:15 +02:00
Santiago Pastorino
b1cfcedc8f
Change returning with tap
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-25 16:33:04 +02:00
Sebastian A. Espindola
8d5b792e7d
Fixed output_buffer encoding problem [ #5179 ]
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-25 16:33:04 +02:00
Santiago Pastorino
30df88ae06
These tests are trusting in the order of the elements so use OrderedHash instead of Hash
2010-07-21 17:34:43 -07:00
Brian Rose
622092d33e
Fixed a globbed route issue where slashes were being escaped, causing assert_routing to fail. [ #5135 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-21 22:07:40 +02:00
Andrew Kaspick
a1a41a3939
remote_function patch with more detailed test
...
Signed-off-by: wycats <wycats@gmail.com >
2010-07-21 10:04:55 -07:00
José Valim
9dfe9fa693
Ensure insert_before in middleware stack raises a meaningful error message [ #3679 state:resolved]
2010-07-21 15:17:04 +02:00
Piotr Sarnacki
6807b08099
Moved a few methods from RecordIdentifier to ActiveModel::Naming
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-21 11:29:58 +02:00
Bryan Helmkamp
e466354edb
Extract ParameterFilter class from FilterParameters mixin
...
Signed-off-by: wycats <wycats@gmail.com >
2010-07-19 13:44:43 -07:00
José Valim
c3c349ec3e
Remove assert_valid. It was already deprecated on Rails 2.3.
2010-07-19 22:35:17 +02:00
Neeraj Singh
33c5689e2d
Exceptions from views should be rescued based on the original exception. If a handler for original exception is missing then apply ActiveView::TemplateError
...
[#2034 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-19 14:50:38 +02:00
José Valim
291adcd588
Set session options id to nil is respected and cancels lazy loading.
2010-07-18 12:51:03 +02:00
Ivan Torres
cdfa11409c
select :include_blank or :prompt should return escaped string [ #5099 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-18 11:32:00 +02:00
Miles Egan
d2fae5f78e
remove size attribute from tag generated by file_field helper [ #5084 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-13 08:30:08 +02:00
José Valim
3d7e411953
Routes should respect namespace even if action is a regexp and just controller is given to to.
2010-07-12 15:11:53 +02:00
Jeremy Kemper
81f398b804
Fix setting helpers_path to a string or pathname
2010-07-07 12:03:08 -07:00
Andrew White
b802a0d4c7
When a dynamic :controller segment is present in the path add a Regexp constraint that allow matching on multiple path segments.
...
Using a namespace block isn't compatible with dynamic routes so we
raise an ArgumentError if we detect a :module present in the scope.
[#5052 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-07 00:11:13 +02:00
Andrew White
f4be0041c6
Refactor handling of :only and :except options. The rules are:
...
1. Don't inherit when specified as an option on a resource
2. Don't push into scope when specified as an option on a resource
2. Resources pull in :only or :except options from scope
3. Either :only or :except in nested scope overwrites parent scope
[#5048 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-06 20:46:20 +02:00
José Valim
8079484b11
Recognize should also work with route is wrapped in a constraint.
2010-07-06 00:39:13 +02:00
Patrik Stenmark
7f7480f6fc
Adds tests for content negotiation change introduced in dc5300adb6
...
Signed-off-by: wycats <wycats@gmail.com >
2010-07-04 11:17:16 -07:00
Andrew White
aa31a255c8
Fix syntax of routing tests so they actually run
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-04 18:49:26 +02:00
Andrew White
c6843e2337
Refactor resource options and scoping. Resource classes are now only responsible for controlling how they are named. All other options passed to resources are pushed out to the scope.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-04 13:20:48 +02:00
Andrew White
54250a5bfe
Refactor recall parameter normalization [ #5021 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-03 10:06:07 +02:00
José Valim
9e6e648732
Fix routes with :controller segment when namespaced [ #5034 state:resolved]
2010-07-02 19:13:00 +02:00
Piotr Sarnacki
f7ba614c2d
Unify routes naming by renaming router to routes
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-02 01:51:03 +02:00
Aaron Patterson
f8720a04d1
porting session.clear fix to master branch. [ #5030 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-07-01 15:17:19 -07:00