| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\
| |
| | |
Asset urls master
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
config.action_controller.default_asset_host_protocol
It's best to leave this unset.
When unset the :request protocol is used whenever it can be and
:relative is used in the other situations.
When set to :request then assets hosts will be disabled when there
is no request in scope and will use the request protocol whenever a
request is in scope.
If set to :relative, then a relative protocol is always used except
for stylesheet link tags which must use the :request protocol to
avoid double downloads in IE6&7.
Conflicts:
actionpack/lib/sprockets/helpers/rails_helper.rb
actionpack/test/template/sprockets_helper_test.rb
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
download of stylesheets in IE7 and IE8.
Conflicts:
actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb
actionpack/lib/sprockets/helpers/rails_helper.rb
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
used during asset precompilation.
Conflicts:
actionpack/lib/action_view/asset_paths.rb
actionpack/lib/sprockets/helpers/rails_helper.rb
actionpack/test/template/sprockets_helper_test.rb
|
|/ |
|
|
|
|
|
|
| |
This allows test classes that are not subclasses of
ActiveSupport::TestCase (like those in rspec-rails) to interact with
with this variable without having to reference ActiveSupport::TestCase.
|
|\
| |
| | |
link_to doesn't allow rel attribute when also specifying method
|
| | |
|
|\ \
| | |
| | | |
Fixes an issue where cache sweepers with only after filters would have no controller object
|
| |/ |
|
|\ \
| |/
|/| |
Fix nested fields_for when Hash-based model is passed.
|
| | |
|
| |
| |
| |
| |
| | |
This fixes an error when a record object that is a subclass of Hash is
passed to fields_for, which is incorrectly interpreted as field options.
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Fixing select[multiple] html specification problem.
|
| |
| |
| |
| | |
Generating hidden input with same name before each multiple select
|
|\ \
| | |
| | | |
Utf8 enforcer param customization
|
| | | |
|
| | | |
|
| | | |
|
|/ /
| |
| |
| |
| |
| | |
be considered as failure
Test for specific value to the extent possible
|
| |
| |
| |
| | |
This reverts commit 115e80dccc65c3ed9a9750649d9ca4ea2a7e64f1.
|
|\ \
| | |
| | | |
Remove unused variable causing warning in 1.9.3
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
This will make sure `render :inline` is working.
Closes #1633
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
test_should_cache_with_trailing_slash_on_url
A trailing slash is removed when a page is cached.
What the test meant to say was : a url with trailing slash
should be cached and the cached page should not have any
trailing slash.
This patch clarifies the name a bit.
|
| | |
| | |
| | |
| | | |
string
|
| | |
| | |
| | |
| | | |
is already html_safe
|
|\ \ \
| | | |
| | | | |
remove unused UserController from test
|
| |/ / |
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Secondly it seemed from the method that the intent was to test a case
where layout was declared in a symbol and the method named mention in
layout returns nil.
That case is already covered with class class WithSymbolReturningNil .
Also the case of SymbolReturningString is covered with the class
WithSymbol.
|
|\ \
| | |
| | | |
Make escape_javascript happy to handle SafeBuffers
|
| |/
| |
| |
| |
| | |
* see GH#1553
* allow for the fact that gsub on SafeBuffer does not pass match variables $1, $2 etc to a block
|
|/
|
|
|
|
|
|
|
|
| |
If before_filter list was being called mistakenly then
the test should fail. However test will not fail because
second filter is assigning new values to @list. To truly
test that first before_filter is not called when it should
not be called then @list should not assigned value unconditionally.
This patch will make the test fail if first filter is called.
|
|\
| |
| | |
test name should reflect the name of the method
|
| |
| |
| |
| | |
that is actually being called
|
|\ \
| | |
| | | |
remove unused class from test
|
| |/ |
|
|/
|
|
| |
This was introduced in [2684f17a17e4f97bdb89d20b4cd08585235263a2] :bomb:
|
| |
|
|
|
|
| |
and fixed helpers to work correctly in such case
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit restores the ability to assign cookies for testing via
@request.env['HTTP_COOKIE'] and @request.cookies, e.g:
@request.env['HTTP_COOKIE'] = 'user_name=david'
get :index
assert_equal 'david', cookies[:user_name]
and
@request.cookies[:user_name] = 'david'
get :index
assert_equal 'david', cookies[:user_name]
Assigning via cookies[] is the preferred method and will take precedence
over the other two methods. This is so that cookies set in controller
actions have precedence and are carried over between calls to get, post, etc.
|