aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
Commit message (Collapse)AuthorAgeFilesLines
* Fix failing tests and use new hash style in deprecation messagesCarlos Antonio da Silva2012-10-292-12/+12
|
* Improve the deprecation message of link_to_function andRafael Mendonça França2012-10-271-6/+6
| | | | | | button_to_function Point the the Unobtrusive JavaScript secion in the JavaScript guide
* cleanup, remove trailing whitespace within actionpackYves Senn2012-10-272-3/+3
|
* check_box value can be not only an object of Array classVasiliy Ermolovich2012-10-201-0/+6
| | | | there is a chance that `value` is a Set or an object that reponses to `include?` method so let's handle this case
* Add i18n scope to disance_of_time_in_words.Steve Klabnik2012-10-191-10/+19
| | | | This fixes #733.
* Merge pull request #7975 from butcher/extend_date_select_helper_functionalityRafael Mendonça França2012-10-181-0/+16
|\ | | | | | | | | | | | | Extend date_select helper functionality. Conflicts: actionpack/CHANGELOG.md
| * Extend date_select helper functionality.Pavel Nikitin2012-10-181-0/+16
| |
* | use the tmp filesystem rather than our own thing.Aaron Patterson2012-10-171-5/+9
|/
* Ignore asset url query string or anchor when appending extensions and ↵Joshua Peek2012-10-151-1/+18
| | | | computing public path
* Extract compute_asset_extname and allow extname to be disabledJoshua Peek2012-10-151-6/+15
|
* Merge branch 'master' into asset-path-helperJoshua Peek2012-10-151-5/+1
|\ | | | | | | | | Conflicts: railties/test/application/configuration_test.rb
| * Minor cleanup, helper method was only used onceAyrton De Craene2012-10-151-5/+1
| |
* | :fire: Rails asset id supportJoshua Peek2012-10-151-80/+1
| |
* | Allow asset url config to be undefinedJoshua Peek2012-10-131-0/+41
| |
* | Add a few more compute_asset_path testsJoshua Peek2012-10-131-0/+8
| |
* | JAVASCRIPTS_DIR, STYLESHEETS_DIR, ASSETS_DIR don't even exist anymoreJoshua Peek2012-10-121-28/+0
| |
* | Ensure AssetUrlHelper can be mixed into AC::BaseJoshua Peek2012-10-121-0/+33
| |
* | Refactor AssetUrlHelper to make it friendly for plugins and extensionsJoshua Peek2012-10-121-1/+35
| | | | | | | | | | | | | | | | Add asset_path/url helper for a consolidated entry point Expose compute_asset_path as a public API Expose compute_asset_host as a public API Move RAILS_ASSET_ID to its own module, AssetIdHelper Removed AV::AssetPaths
* | Add asset_path and asset_url helpersJoshua Peek2012-10-121-0/+18
|/
* Allow for deep directory path for view templates.Andy Shipman2012-10-111-0/+6
|
* recognizes when a partial was rendered twice. Closes #3675Yves Senn2012-10-111-0/+8
|
* Remove old asset tag concatenationJoshua Peek2012-10-101-752/+0
| | | | Use sprockets, jammit, or some other asset bundler
* Ruby 2 compat. CGI.escapeHTML has changed the way it escapes apostrophes a ↵Jeremy Kemper2012-10-061-1/+1
| | | | few times, so fix up the test to work with however it chooses to escape.
* Update some code styles.Rafael Mendonça França2012-10-061-150/+180
| | | | | * Uses the Ruby 1.9 hash syntax * Avoid escaping " inside string using the %{} syntax
* Accept :remote as symbol in link_to optionsRiley Lynch2012-10-061-0/+14
| | | | | Accept either :remote or 'remote' in both the html_options and (url_)options hash arguments to link_to.
* remove method redefinition warningsRafael Mendonça França2012-09-271-1/+1
| | | | | actionpack/test/template/spec_type_test.rb:32: warning: method redefined; discarding old test_spec_type_wont_match_non_space_characters actionpack/test/controller/spec_type_test.rb:30: warning: previous definition of test_spec_type_wont_match_non_space_characters was here
* allow to pass numerical value to size option in image_tagNihad Abbasov2012-09-251-1/+1
| | | | | This will set image's both width and height attributes to value passed in size option.
* Support helper tests using spec DSLMike Moore2012-09-242-1/+57
| | | | | Improve how helper tests to resolve the helper class from the test name. Add tests for helper tests using the minitest spec DSL.
* Register helper and view tests for minitest's spec DSLMike Moore2012-09-241-0/+39
|
* Merge pull request #7669 from guilleiguaran/rename-rb-handlerCarlos Antonio da Silva2012-09-171-3/+3
|\ | | | | Rename .rb template handler to .ruby to avoid conflicts with mustache classes
| * Rename .rb template handler to .ruby to avoid conflicts with mustache views ↵Guillermo Iguaran2012-09-171-3/+3
| | | | | | | | classes
* | allowing pass couple extension to register_template_handler callTima Maslyuchenko2012-09-171-0/+9
|/
* Merge pull request #7594 from guilleiguaran/rb-template-handlerRafael Mendonça França2012-09-101-0/+8
|\ | | | | Add .rb template handler
| * Add .rb template handlerGuillermo Iguaran2012-09-111-0/+8
| | | | | | | | This handler simply allows arbitrary Ruby code as a template
* | &#39 dates back to SGML when &#x27 was introduced in HTML 4.0Kalys Osmonov2012-09-096-10/+10
|/
* Add a separation option for the excerpt functionGuirec Corbel2012-09-081-0/+13
| | | | | | | | | | The separation option enable to keep entire words, lines or anything. To split by line, like github, we can set the separation option as \n. To split by word, like google, we can set the separation option as " ". The radius option represent the number of lines or words we want to have in the result. The default behaviour is the same. If we don't set the separation option, it split the text any where.
* Use the same logger that ActionView::Base for the DigestorRafael Mendonça França2012-09-051-14/+17
|
* Fix build about TemplateDigestorTest.kennyj2012-08-301-3/+3
|
* `Digestor` can now parse old style hash syntax for `render`Christos Zisopoulos2012-08-301-0/+6
|
* `Digestor` ignores most whitespace when parsing `render` invocationsChristos Zisopoulos2012-08-301-0/+23
|
* Add automatic template digests to all CacheHelper#cache calls (originally ↵David Heinemeier Hansson2012-08-291-0/+128
| | | | spiked in the cache_digests plugin) *DHH*
* Fix ActionView::RecordIdentifier to work as a singletonPiotr Sarnacki2012-08-281-0/+9
| | | | | We extend it with self, but the methods were not working properly were used directly on module.
* Deprecate Template#mime_typePiotr Sarnacki2012-08-281-0/+7
|
* Don't require action_dispatch in ActionView::UrlHelpersPiotr Sarnacki2012-08-282-2/+3
| | | | | | | | | | ActionDispatch::Routing::UrlFor was always required in UrlHelpers. This was changed by splitting previous implementation of UrlHelper into 2 modules: ActionView::Helpers::UrlHelper and ActionView::Routing::UrlHelper. The former one keeps only basic implementation of url_for. The latter adds features that allow to use routes and is only required when url_helpers or mounted_helpers are required.
* Add ActionView::Base.default_formatsPiotr Sarnacki2012-08-281-0/+11
| | | | | | | | default_formats array is used by LookupContext in order to allow rendering templates when :formats option is not passed. Previously it was always set to Mime::SET, which created dependency on Action Pack. In order to remove this dependency, Mime::SET is used only if ActionController is loaded.
* Deprecate mime types lookup in auto_discovery_link_tagPiotr Sarnacki2012-08-281-1/+10
| | | | | | Automatically handling mime types for things other than :rss and :atom is not functionality that justifies dependency on Mime::Type from actionpack.
* Remove stubs from LogSubscriber testsPiotr Sarnacki2012-08-281-3/+4
| | | | | | | We can use another way to instantiate ActionView::Base, by passing renderer as a first option. Thanks to that we can just pass prefixes to LookupContext instead stubbing them on the controller. This is also good, because that kind of API is used in Rails code.
* Move ActionController::RecordIdentifier to ActionViewPiotr Sarnacki2012-08-281-0/+40
| | | | | | | Since it's more about DOM classes and ids it belongs to Action View better. What's more, it's more convenient to make it part of Action View to follow the rule that Action Pack can depend on Action View, but not the other way round.
* Create variable only in the test that uses itCarlos Antonio da Silva2012-08-251-3/+3
| | | | | Instead of building a Blog::Post instance for every test in form helper tests, just build it in the test that uses it.
* correct handling of date selects when using both disabled and discard optionsVasiliy Ermolovich2012-08-251-0/+24
| | | | | | | | | | | | we should take disabled option not only from `html_options` hash but from `options` hash too like `build_select` method does it. So datetime_select("post", "updated_at", { :discard_minute => true }, { :disabled => true }) datetime_select("post", "updated_at", :discard_minute => true , :disabled => true) both these variants work now closes #7431