Commit Graph

716 Commits

Author SHA1 Message Date
Kuldeep Aggarwal
a13ad4a6c1 do not generate blank options in mailTo
when mail_to generate blank options for any passed options(cc, bcc, body, subject)
then MICROSOFT OUTLOOK treats it differently and set wrong values in different options.
2014-10-02 19:38:36 +05:30
Rafael Mendonça França
7b740f31cc Merge pull request #17088 from robin850/jruby-dev
Follow up to #16613
2014-10-01 22:56:08 -03:00
Adrian Rangel
56d26d1d9f use tr instead of gsub when possible 2014-10-01 02:19:52 -05:00
igor04
0e50b7bdf4 Added processing of nil to highlight helper method 2014-09-30 14:48:48 +03:00
Kasper Timm Hansen
f939904f23 Parse HTML as document fragment.
This is to match the changes in Rails Dom Testing rails/rails-dom-testing#20.
2014-09-29 21:41:52 +02:00
Robin Dupret
1fac7b79f3 Follow up to #16613
Since we want this flag to be enabled anytime we are running the tests
under JRuby, let's enable this at the Rakefile level so people get the
performance boost on their local checkout.

Moreover, we avoid having to update this particular line anytime the
option changes on the JRuby side.

The only drawback is that we have to define it in every Rakefile but
there's no big deal, this is already the case for other options.
2014-09-28 12:04:06 +02:00
Rafael Mendonça França
4581d04477 Preparing for 4.2.0.beta2 release 2014-09-26 17:19:53 -03:00
claudiofullscreen
0b725aa7d6 Don’t require already required modules
abstract_unit.rb requires `action_controller` which [already includes the following lines of code](64fcdce1d3/actionpack/lib/action_controller.rb (L2L3)):

```ruby
require 'abstract_controller'
require 'action_dispatch'
```
2014-09-26 13:05:00 -07:00
Felipe Oliveira
0d49841187 Add +variants to ActionView::FileSystemResolver documentation. 2014-09-26 14:26:16 -03:00
Rafael Mendonça França
f82ecef9ae Merge pull request #17058 from eval/issue-17057
Remove internal options from query string of paths
2014-09-25 17:15:00 -03:00
Godfrey Chan
b5571b3ccf Revert "Revert "Merge pull request #16888 from jejacks0n/render_template""
This reverts commit 585e75696b31395aee895e5366e331c07c3f5ee1.
2014-09-26 01:42:18 +09:00
Godfrey Chan
b008e4bd8a Use released rails-html-sanitizer and rails-deprecated_sanitizer 2014-09-26 01:37:05 +09:00
Gert Goet
2d08fd2506 Remove internal options from query string of paths
Fixes #17057
2014-09-25 17:50:16 +02:00
Rafael Mendonça França
2c0cad8034 Use released rails-dom-testing 2014-09-25 12:31:42 -03:00
Godfrey Chan
585e75696b Revert "Merge pull request #16888 from jejacks0n/render_template"
This reverts commit 07635a74b5ee08dcba3f6617def6230d8f114fe5, reversing
changes made to 1b5f61a025b6ce1ee52b7148e3ed2a9acbde28b9.

Reason: it's not ready 💣, see https://github.com/rails/rails/pull/16888#issuecomment-56400816
2014-09-23 02:06:08 +09:00
Godfrey Chan
b04ac976d9 CHANGELOG for 07635a7 2014-09-23 00:48:06 +09:00
Godfrey Chan
07635a74b5 Merge pull request #16888 from jejacks0n/render_template
Changes default render behavior from file to template.
2014-09-23 00:34:36 +09:00
claudiob
606ce3f907 Remove wrapping <div> in form helpers from doc
[ci skip]

89ff1f8 and 1de258e6 removed from the HTML generated by the form helpers
the <div> that was wrapping the field elements inside the <form>.

This commit updates the documentation of the methods to reflect the
two commits above.
2014-09-22 00:37:03 -07:00
Akshay Vishnoi
8841f45129 [ci skip] ActionView and ActionMailer CHANGELOG docs fixes 2014-09-18 03:40:51 +05:30
Rafael Mendonça França
1bdb233bc2 Merge pull request #16790 from cirosantilli/explain-erb-space-removal
Explain ERB space removal.

[ci skip]
2014-09-16 11:14:28 -03:00
Aaron Patterson
8a47e87267 handle <%== nil %> cases
This is much less common than string literal appends, so add a special
case method for it.  Maybe fixes bug reported by @jeremy on 97ef636191933f1d4abc92fc10871e6d1195285c
2014-09-14 17:11:13 -07:00
Aaron Patterson
97ef636191 Stop nil checking on safe_append=
ERB compiler guarantees safe_append= will be called with a string, so
nil checks don't make sense.  Anything else calling this method should
check for nil themselves before calling
2014-09-14 13:26:39 -07:00
Matthew Draper
457c876b15 Revert "Merge pull request #15312 from JuanitoFatas/action_view/asset_path"
This reverts commit 21ec7fefea5a1b823cb88733b019b3d52240801d.

Per #16911, there's actually a good reason for a "blank" value to have a
useful `to_s` here. So let's also add some tests to prove that.
2014-09-14 07:04:47 +09:30
jejacks0n
428722ba4f Changes default render behavior from file to template. 2014-09-11 21:54:49 -06:00
Ciro Santilli
700ec897f9 Explain ERB space removal. [ci skip] 2014-09-11 09:55:57 +02:00
Rafael Mendonça França
412f651665 Merge pull request #16839 from chancancode/default_test_order
Default to sorting user's test cases for now
2014-09-10 22:34:06 -03:00
Rafael Mendonça França
fb11038148 Do not memoize document_root_element in view tests
Memoizing will not make possible to assert the output of the view if it
is changed after the first assert_select call

Related with plataformatec/simple_form#1130 and rails/rails-dom-testing#15
2014-09-08 18:04:45 -03:00
Godfrey Chan
2b41343c34 Default to sorting user's test cases for now
Goals:

1. Default to :random for newly generated applications
2. Default to :sorted for existing applications with a warning
3. Only show the warning once
4. Only show the warning if the app actually uses AS::TestCase

Fixes #16769
2014-09-08 05:32:16 -07:00
Rajarshi Das
ab2ace6bbe fix the undefined method content_tag #15245
not required include ActionView::Helpers::TagHelper in test as well
2014-09-06 12:09:01 +05:30
Matthew Draper
7025d7769d For now, we will keep sorting the tests.
This reverts commits e969c928463e329fd6529ac59cad96385c538ffb and
bd2b3fbe54e750ba97469a7896e8d143d6dfd465.
2014-09-05 23:33:27 +09:30
Rafael Mendonça França
faa0f32434 Extract data/aria attribute prefixes to a constant 2014-09-03 18:31:04 -03:00
PaoMar
ee61b76a81 Add support for ARIA attributes in tags 2014-09-03 16:14:21 -05:00
Kasper Timm Hansen
28eecd934b Ship with rails-html-sanitizer instead. 2014-09-03 20:27:59 +02:00
Ciro Santilli
247cc94574 Shorten ActionView::Base doc summary line. [ci skip] 2014-09-02 19:09:42 +02:00
Ciro Santilli
afb230ec93 Clarify Rails uses erubis not stdlin ERB. [ci skip] 2014-09-02 18:12:04 +02:00
Matthew Draper
2f52f96988 Leave all our tests as order_dependent! for now
We're seeing too many failures to believe otherwise.

This reverts commits bc116a55ca3dd9f63a1f1ca7ade3623885adcc57,
cbde413df3839e06dd14e3c220e9800af91e83ab,
bf0a67931dd8e58f6f878b9510ae818ae1f29a3a, and
2440933fe2c27b27bcafcd9019717800db2641aa.
2014-09-02 23:55:34 +09:30
Rafael Mendonça França
67b42cb4aa Move implementation to the gems
Now we keep only the common code and move the specific code to the gems
2014-09-01 23:26:10 -03:00
Rafael Mendonça França
5c057f9255 Remove warning 2014-09-01 22:20:39 -03:00
Sammy Larbi
2fae37f0ac Allow polymorphic routes with nil when a route can still be drawn
Suppose you have two resources routed in the following manner:

```ruby
resources :blogs do
  resources :posts
end

resources :posts
```

When using polymorphic resource routing like `url_for([@blog, @post])`, and `@blog` is `nil` Rails should still try to match the route to the top-level posts resource.

Fixes #16754
2014-08-31 11:39:46 -05:00
Robin Dupret
84c0f73c8d Refer to the library name instead of the constant
When we are loading a component and we want to know its version, we are
actually not speaking about the constant but the library itself.

[ci skip]

[Godfrey Chan & Xavier Noria]
2014-08-30 11:58:23 +02:00
David Heinemeier Hansson
7475b43cdb Merge branch 'master' of github.com:rails/rails 2014-08-29 14:54:08 -07:00
Akira Matsuda
bd2b3fbe54 No need to sort tests
Dir.glob result must be already sorted anyway
2014-08-28 14:41:00 +09:00
Aaron Patterson
cab85e9926 remove useless parameter 2014-08-27 17:59:34 -07:00
Aaron Patterson
7a2622bcbd remove dead code
the ERB has already been compiled to Ruby code by the time we're calling
module_eval.  Nothing that module eval raises will be caught by a blank
`rescue`, so I think we can remove this
2014-08-27 17:59:09 -07:00
Yves Senn
20e7f08ecc minor changelog formatting changes. 2014-08-27 12:09:21 +02:00
Jeremy Kemper
0b7edd4418 Merge pull request #16488 from agrobbin/form-label-builder
Provide a builder for form labels to customize wrapping around I18n content
2014-08-25 07:22:17 -07:00
Jeremy Kemper
671615ac2a Merge pull request #16639 from agrobbin/input-placeholder-i18n
Add I18n support for `:placeholder` HTML option is passed to form fields
2014-08-24 15:26:24 -07:00
T.J. Schuck
0387591c05 Remove erroneous form_tag option docs
This is true of the first param (url_for_options),
not of the second options param which is being
documented here.

[ci skip]
2014-08-22 15:22:59 -04:00
T.J. Schuck
60da337a00 Clarify that unknown keys will become HTML attrs
Docs for all the other form tag helpers in this
file already clarify this.

[ci skip]
2014-08-22 15:20:53 -04:00
Alex Robbin
f99e62e2d9 just use the placeholder tag value if it is passed as a String 2014-08-22 09:54:54 -04:00