Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Get rid of :skip_prefix options in routes | Piotr Sarnacki | 2010-09-03 | 1 | -1/+1 |
| | |||||
* | Refactored tests for prefix generation and added test for url generation in ↵ | Piotr Sarnacki | 2010-09-03 | 1 | -11/+32 |
| | | | | regular class with default_url_options[:script_name] set | ||||
* | New way of generating urls for Application from Engine. | Piotr Sarnacki | 2010-09-03 | 2 | -1/+2 |
| | | | | | | | | | It's based specifying application's script_name with: Rails.application.default_url_options = {:script_name => "/foo"} default_url_options method is delegated to routes. If router used to generate url differs from the router passed via env it always overwrites :script_name with this value. | ||||
* | Allow to generate Application routes inside Engine | Piotr Sarnacki | 2010-09-03 | 1 | -3/+22 |
| | | | | | | This requires knowledge about original SCRIPT_NAME and the parent router. It should be pass through the env as ORIGIAL_SCRIPT_NAME and action_dispatch.parent_routes | ||||
* | Use env['action_dispatch.routes'] to determine if we should generate prefix ↵ | Piotr Sarnacki | 2010-09-03 | 2 | -1/+103 |
| | | | | | | | | | | or not. This technique is here to allow using routes from Engine in Application and vice versa. When using Engine routes inside Application it should generate prefix based on mount point. When using Engine routes inside Engine it should use env['SCRIPT_NAME']. In any other case it should generate prefix as env should not be even available. | ||||
* | Revert "Setup explicit requires for files with exceptions. Removed them from ↵ | José Valim | 2010-09-02 | 7 | -7/+0 |
| | | | | | | | | autoloading." Booting a new Rails application does not work after this commit [#5359 state:open] This reverts commit 38a421b34d0b414564e919f67d339fac067a56e6. | ||||
* | Setup explicit requires for files with exceptions. Removed them from ↵ | Łukasz Strzałkowski | 2010-09-02 | 7 | -0/+7 |
| | | | | | | autoloading. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Removing unnecessary code from render_test | Thiago Pradi | 2010-09-02 | 1 | -2/+0 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Removing unnecessary code | Thiago Pradi | 2010-09-02 | 1 | -7/+0 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Move implicit nested call before options handling so that nested constraints ↵ | Andrew White | 2010-09-01 | 1 | -0/+18 |
| | | | | | | work [#5513 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Added :format option for form_for helper and spec for this [#5226 ↵ | Alex Chrome | 2010-09-01 | 1 | -2/+18 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Bump rack-mount to 0.6.13 and add test case for named character classes ↵ | Andrew White | 2010-08-31 | 1 | -0/+12 |
| | | | | | | [#5509 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Remove NonConcattingString. | José Valim | 2010-08-29 | 1 | -2/+0 |
| | |||||
* | Remove deprecated support to <% form_for %> and several ↵ | José Valim | 2010-08-29 | 5 | -120/+12 |
| | | | | ActionController::Base methods. | ||||
* | Ensure that inherited helper_methods are available after calling ↵ | Jesse Storimer | 2010-08-28 | 1 | -0/+31 |
| | | | | | | clear_helpers [#5348 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | password_field renders with nil value by default | Santiago Pastorino | 2010-08-28 | 1 | -1/+4 |
| | | | | | | | | This makes the use of passwords secure by default if you want to render the value of the password_field you have to do for instance f.password_field(:password, :value => @user.password) # => <input type=password id=user_password name=user[password] value=#{@user.password} /> | ||||
* | Make InstanceTagMethods#value_before_type_cast raise if the model don't ↵ | Santiago Pastorino | 2010-08-27 | 1 | -0/+13 |
| | | | | | | respond to attr_before_type_cast or attr method [#3374] [#5471 state:committed] | ||||
* | Be sure to call helper :all just on direct children. (Tests by Jesse Storimer) | José Valim | 2010-08-26 | 3 | -0/+18 |
| | |||||
* | Add clear_helpers as a way to clean up all helpers added to this controller, ↵ | José Valim | 2010-08-26 | 2 | -2/+24 |
| | | | | maintaing just the helper with the same name as the controller. | ||||
* | Use nested scope for routes defined at the :resources scope level (as in ↵ | Andrew White | 2010-08-24 | 1 | -0/+7 |
| | | | | | | Rails 2.3) Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Allow format to be skipped. This is used internally by mount. | José Valim | 2010-08-24 | 1 | -1/+1 |
| | |||||
* | Finally fix the bug where symbols and strings were not having the same ↵ | José Valim | 2010-08-24 | 1 | -6/+38 |
| | | | | | | | behavior in the router. If you were using symbols before for methods like match/get/post/put/delete, it is likely that this commit will break your routes. Everything should behave the same if you are using strings, if not, please open up a ticket. | ||||
* | Ensure shortcuts inside resources also generates helpers. | José Valim | 2010-08-24 | 1 | -4/+4 |
| | |||||
* | Fix how routes inside namespaces are generated. | José Valim | 2010-08-24 | 1 | -3/+3 |
| | |||||
* | Allow actions which start with A-Za-z_ only | Santiago Pastorino | 2010-08-24 | 1 | -1/+4 |
| | |||||
* | Reset symbolized path parameters when a test request is recycled [#5437 ↵ | Andrew White | 2010-08-24 | 1 | -0/+8 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Fix a bug where symbols and strings were not behaving the same in the ↵ | José Valim | 2010-08-24 | 1 | -3/+3 |
| | | | | router. [#5431 state:resolved] | ||||
* | When custom resource actions are specified using strings add the default ↵ | Andrew White | 2010-08-24 | 1 | -0/+22 |
| | | | | | | | | name and action if the string is a valid ruby method name. [#5431 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Config is deprecated on 1.8.8 and 1.9.3 use RbConfig | Santiago Pastorino | 2010-08-23 | 1 | -1/+1 |
| | |||||
* | Silence warnings for Encoding.default_external= and Encoding.default_internal= | Santiago Pastorino | 2010-08-22 | 1 | -2/+6 |
| | |||||
* | Cache the symbolized path parameters using a instance variable in the ↵ | Andrew White | 2010-08-22 | 1 | -0/+21 |
| | | | | | | | | | | | request object rather than the environment hash. This it to prevent stale parameters in later routing constraints/redirects as only the normal path parameters are set by Rack::Mount. Also if a constraint proc arity is more than one, pass the symbolized path parameters as the first argument to match redirect proc args and provide easier access. [#5157 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Move encoding settings for testing purposes to abstract_unit file | Santiago Pastorino | 2010-08-21 | 2 | -9/+6 |
| | |||||
* | Support routing constraints in functional tests | Andrew White | 2010-08-20 | 1 | -1/+1 |
| | | | | | | | | | | Extend assert_recognizes and assert_generates to support passing full urls as the path argument. This allows testing of routing constraints such as subdomain and host within functional tests. [#5005 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Don't add the standard https port when using redirect in routes.rb and ↵ | Andrew White | 2010-08-20 | 2 | -0/+54 |
| | | | | | | | | ensure that request.scheme returns https when using a reverse proxy. [#5408 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Allow symbols for :path resource(s) option [#5306 state:resolved] | Andrew White | 2010-08-20 | 1 | -0/+19 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Move regexps in options hash to :constraints hash so that they are pushed ↵ | Andrew White | 2010-08-19 | 1 | -0/+22 |
| | | | | | | into the scope [#5208 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Move edit route before show route so that it will have precedence if the :id ↵ | Andrew White | 2010-08-19 | 1 | -0/+16 |
| | | | | | | parameter allows slashes [#5409 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Revert "It's snowing!" | wycats | 2010-08-18 | 2 | -2/+2 |
| | | | | This reverts commit e4283007d607454acf97301821ba1e1c417bdead. | ||||
* | Don't pluralize resource methods [#4704 state:resolved] | Javier Martín | 2010-08-18 | 1 | -0/+62 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Allow member actions (get, etc) to accept strings, with test | Andre Arko | 2010-08-17 | 1 | -1/+1 |
| | |||||
* | code gardening: we have assert_(nil|blank|present), more concise, with ↵ | Xavier Noria | 2010-08-17 | 6 | -12/+12 |
| | | | | better default failure messages - let's use them | ||||
* | select tags coerce the :selected option, options to strings before ↵ | Subba Rao Pasupuleti | 2010-08-15 | 1 | -0/+62 |
| | | | | | | comparison [#5056 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Allow for any possible TLD when using the :all option with the cookie ↵ | Bryce Thornton | 2010-08-15 | 1 | -1/+29 |
| | | | | | | 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> | ||||
* | Making time_zone_options_for_select return a html_safe string | Mikel Lindsaar | 2010-08-15 | 1 | -0/+4 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | object/try should be required after abstract_unit to have AS in the load path | Santiago Pastorino | 2010-08-14 | 1 | -1/+1 |
| | |||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 52 | -246/+246 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | It's snowing! | Jeremy Kemper | 2010-08-12 | 2 | -2/+2 |
| | |||||
* | Replace snowman with utf8=✓ | wycats | 2010-08-11 | 2 | -2/+2 |
| | |||||
* | layout_for works again with objects as specified in the documentation and ↵ | José Valim & Carlos Antonio da Silva | 2010-08-11 | 3 | -0/+7 |
| | | | | Rails 2.3 [#5357 state:resolved] | ||||
* | rename _snowman to _e | wycats | 2010-08-09 | 2 | -2/+2 |
| |