Commit Graph

3686 Commits

Author SHA1 Message Date
Kamil Sobieraj
de942e5534 :subdomain can now be specified with a value of false in url_for, allowing for subdomain(s) removal from the host during link generation. Closes #2025 2011-10-04 09:16:34 +01:00
Alexey Vakhov
8e946daf69 normalize arg for AC::TestCase tests class method 2011-10-03 12:12:07 +04:00
José Valim
6e8fe1bf02 TestCase should respect the view_assigns API instead of pulling variables on its own. 2011-10-02 11:29:13 +02:00
Santiago Pastorino
64b0c8888b javascript_path and stylesheet_path should honor the asset pipelining 2011-09-28 20:13:24 -03:00
Wen-Tien Chang
3058d13a06 Make button_to helper support "form" option which is the form attributes. 2011-09-29 01:40:15 +08:00
Christos Zisopoulos
b8ea31540a Correctly override image_path in sprockets rails_helper 2011-09-26 18:45:49 +02:00
Santiago Pastorino
d6cff93152 Just assert_equal here 2011-09-26 12:20:52 -03:00
Santiago Pastorino
2c3a5075b6 Merge pull request #3135 from christos/respect_assets_digest_value
Give precedence to `config.digest = false` over the existence of manifest.yml asset digests
2011-09-26 08:16:02 -07:00
Santiago Pastorino
b855327443 image_tag should use /assets if asset pipelining is turned on. Closes #3126 2011-09-26 11:20:30 -03:00
Christos Zisopoulos
793e9da63d Give precedence to config.digest = false over manifest.yml asset digests 2011-09-26 14:27:04 +02:00
Vijay Dev
541018a07b fix deprecation warning in cookie_store_test
The options argument to MessageVerifier#initialize should be a hash.
2011-09-25 23:21:37 +05:30
Evgeniy Dolzhenko
86cf3fb5fa Implement Mime::Type#respond_to? (consistently with #method_missing) 2011-09-25 13:03:01 +01:00
José Valim
933ba0cf6e Merge pull request #3124 from avakhov/patch-6-stylesheet-link
escape options for the stylesheet_link_tag method
2011-09-25 04:03:13 -07:00
Alexey Vakhov
5ffa69793f escape options for the stylesheet_link_tag method 2011-09-25 09:40:49 +04:00
Guillermo Iguaran
038808ba1a Add public API for register new js and css compressors for Sprockets 2011-09-24 19:22:13 -05:00
Santiago Pastorino
3de95fd930 Revert "Make process reuse the env var passed as argument"
This reverts commit 0e4748cd41.
2011-09-24 17:19:42 -03:00
Santiago Pastorino
5dcb269eb8 Merge pull request #3092 from asee/master
Sprockets to use config.assets.prefix, with tests
2011-09-23 09:34:04 -07:00
José Valim
48d27363f2 Fix failing tests and add tests for :formats on partial. 2011-09-23 00:42:20 +02:00
Nick Sutterer
2e3eb2560b Allow both sym and array for details options in #render. using LC#registered_details to extract options. 2011-09-23 00:36:14 +02:00
Nick Sutterer
f8e6664d86 added tests for render :file/:template and the :formats/:handlers/:locale options. 2011-09-23 00:36:10 +02:00
docunext
c070cc4ab4 Fixes #1489 again, with updated code and numerous tests to confirm 2011-09-22 13:43:08 -04:00
José Valim
43d27e9105 Deprecate passing the template handler in the template name.
For example, calling hello.erb is now deprecated. Since Rails 3.0
passing the handler had no effect whatsover. This commit simply
deprecates such cases so we can clean up the code in later releases.
2011-09-22 15:37:38 +02:00
José Valim
119e9e2daf Get rid of update_details in favor of passing details to find_template. 2011-09-22 15:03:05 +02:00
Nick Sutterer
cbaad674f1 it is now possible to pass details options (:formats, :details, :locales, ...) to #render, #find_template and friends. this doesn't change anything in global context. 2011-09-22 14:12:36 +02:00
Pawel Pierzchala
019eea4a38 Fix named routes modifying arguments 2011-09-22 09:57:00 +02:00
Santiago Pastorino
da7f0426ec Allow asset tag helper methods to accept :digest => false option in order to completely avoid the digest generation. 2011-09-14 15:02:17 -07:00
Santiago Pastorino
5f28c22722 Merge pull request #2964 from msgehard/silence_warnings
Silence Ruby warnings about uninitialized instance variable.
2011-09-14 00:27:45 -07:00
Santiago Pastorino
b0cee70354 Merge pull request #2977 from guilleiguaran/fix-relative-root-in-assets
Set relative url root in assets when controller isn't available for Sprockets
2011-09-12 23:25:28 -07:00
Guillermo Iguaran
9279d1102c Set relative url root in assets when controller isn't available for Sprockets. Fix #2435
See https://github.com/rails/sass-rails/issues/42 for details
2011-09-13 01:02:44 -05:00
Aaron Patterson
a08bee7841 all routes can be stored in the Journey Routes object 2011-09-12 16:50:48 -07:00
Santiago Pastorino
a9509284ca Merge pull request #2974 from md5/csrf_token_warning
Use ensure instead of rescue
2011-09-10 17:29:04 -07:00
Mike Dillon
dbef311819 Use ensure instead of rescue 2011-09-10 11:01:22 -07:00
Aaron Patterson
d0946fdd57 Merge pull request #2972 from md5/master
Use log.warn instead of debug for CSRF token warning
2011-09-10 10:45:47 -07:00
Mike Dillon
538fb18dea Add test for warning and CHANGELOG entry 2011-09-10 09:51:55 -07:00
Arun Agrawal
abbd27fad8 No need to use </form> here. It's already in whole_form block 2011-09-10 12:22:29 +05:30
Mike Gehard
6c43532cb6 Silence Ruby warnings about uninitialized instance variable. 2011-09-09 15:48:43 -06:00
Aaron Patterson
ac1a363c6e Pull up a method we only use once. 2011-09-08 16:04:57 -07:00
Aaron Patterson
41a085ebc9 Conditions must never be equal 2011-09-08 16:04:57 -07:00
Jon Leighton
16f1ce41d5 Merge pull request #2499 from akaspick/assert_select_email_fix
Fix assert_select_email to work on non-multipart emails as well as converting the Mail::Body to a string to prevent errors.
2011-09-07 05:51:31 -07:00
Aaron Patterson
f6ced69a11 Eliminate newlines in basic auth. fixes #2882 2011-09-06 17:25:20 -07:00
Santiago Pastorino
a23e3855c5 Merge pull request #2872 from sikachu/content_tag_html_safe
Make sure that result from content_tag_for with collection is html_safe
2011-09-05 07:08:39 -07:00
Santiago Pastorino
f4a690dae7 Merge pull request #2815 from avakhov/current-page-non-get-requests
current_page? returns false for non-GET requests
2011-09-05 06:13:14 -07:00
Santiago Pastorino
c255e0eed5 Merge pull request #2799 from tomstuart/3-1-stable
Never return stored content from content_for when a block is given
2011-09-05 10:11:43 -03:00
Prem Sichanugrist
ffe56f3b8c Make sure that result from content_tag_for with collection is html_safe
Thank you @spastorino for catching the empty test in b84cee0, as I totally forgot that I still have to make it html_safe.
2011-09-05 20:04:37 +07:00
Vijay Dev
24ee573d6c add blanks between methods 2011-09-05 13:41:25 +05:30
Santiago Pastorino
4f8777333d Remove empty test 2011-09-05 00:43:51 -03:00
Santiago Pastorino
8bffd6c6ae Merge pull request #2863 from raybaxter/silence_unitialized_instance_variable_warnings
Silence unitialized instance variable warnings
2011-09-04 20:37:02 -07:00
Ray Baxter
fa0ebf4c98 Tests shouldn't produce warnings 2011-09-04 20:27:53 -07:00
Santiago Pastorino
a1fa756e17 * is not allowed in windows file names. Closes #2574 #2847 2011-09-04 17:44:48 -03:00
Prem Sichanugrist
b84cee08c6 Make content_tag_for and div_for accepts the array of records
So instead of having to do this:

   @items.each do |item|
     content_tag_for(:li, item) do
        Title: <%= item.title %>
     end
   end

You can now do this:

   content_tag_for(:li, @items) do |item|
     Title: <%= item.title %>
   end
2011-09-04 11:55:12 +07:00