aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
Commit message (Collapse)AuthorAgeFilesLines
...
* | Refactor AssetUrlHelper to make it friendly for plugins and extensionsJoshua Peek2012-10-127-344/+240
| | | | | | | | | | | | | | | | 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-122-17/+54
|/
* Split asset url helpers into seperate AssetUrlHelperJoshua Peek2012-10-125-419/+416
|
* Allow for deep directory path for view templates.Andy Shipman2012-10-111-1/+1
|
* refactor `ActionView::TestCase` internals to track rendered localsYves Senn2012-10-111-11/+29
| | | | | this refactoring extracts the semi complex data structure of rendered locals per view into into a separate class
* recognizes when a partial was rendered twice. Closes #3675Yves Senn2012-10-111-5/+8
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-10-111-1/+1
|\ | | | | | | | | | | Conflicts: activerecord/lib/active_record/persistence.rb railties/lib/rails/generators/rails/resource_route/resource_route_generator.rb
| * Closed unclosed <tt>, working on a complete solution for docrails, but ↵AvnerCohen2012-10-081-1/+1
| | | | | | | | testing push process first
* | Remove expansion configJoshua Peek2012-10-101-2/+0
| |
* | Remove old asset tag concatenationJoshua Peek2012-10-104-378/+16
| | | | | | | | Use sprockets, jammit, or some other asset bundler
* | Fix nodoc commentRafael Mendonça França2012-10-071-16/+15
| |
* | More Ruby 1.9 hash syntax.Rafael Mendonça França2012-10-061-52/+47
| |
* | We don't need to check blank? here.Rafael Mendonça França2012-10-061-1/+1
| | | | | | | | | | | | | | | | Also the blank? check introduced a bug. $ rails generate model Foo blank:boolean form_for(Foo.new(:blank => true)) => ArgumentError, "First argument in form cannot contain nil or be empty"
* | Update some code styles.Rafael Mendonça França2012-10-061-50/+48
| | | | | | | | | | * 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-2/+5
| | | | | | | | | | Accept either :remote or 'remote' in both the html_options and (url_)options hash arguments to link_to.
* | Add nodoc to now public fragment_name_with_digestRyan Garver2012-10-041-0/+1
| |
* | Merge branch 'master' into feature/public-fragment_name_with_digestRyan Garver2012-10-023-7/+11
|\ \
| * \ Merge pull request #7708 from bdurand/optimize_log_subscribersRafael Mendonça França2012-10-011-2/+5
| |\ \ | | | | | | | | Optimize log subscribers to check if the log level is sufficient
| | * | Optimize log subscribers to check if the log level is sufficient before ↵Brian Durand2012-09-301-2/+5
| | | | | | | | | | | | | | | | performing an operations.
| * | | prefix TemplateAssertions ivars (#7459)Yves Senn2012-10-011-3/+3
| | |/ | |/|
| * | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-09-281-2/+2
| |\ \ | | | | | | | | | | | | | | | | Conflicts: actionpack/lib/action_view/helpers/asset_tag_helper.rb
| | * | update image_tag output in examples to actualNihad Abbasov2012-09-251-4/+4
| | |/ | | | | | | [ci-skip]
| * | Fix tests broken by adding a new instance variable to view test casesJeremy Kemper2012-09-271-0/+1
| | |
* | | Move the CacheHelper#fragment_name_with_digest to be public so custom ↵Ryan Garver2012-09-271-11/+11
|/ / | | | | | | fragment caching can benefit from it.
* | Adds missing dependency to ActionView::TestCase::BehaviorAndy Lindeman2012-09-261-0/+2
| | | | | | | | | | | | | | | | | | * The module is needed for the `determine_constant_from_test_name` method. * Without it, the including class is required to also include `ActiveSupport::Testing::ConstantLookup` or a `NoMethodError` will be raised upon instantiation of that class. * Issue introduced in c0a24555f9e2749fb94efe1967cb9943db0b6a7e
* | change ^ and $ anchors in regexp to \A and \z respectivelyNihad Abbasov2012-09-251-1/+1
| | | | | | | | http://guides.rubyonrails.org/security.html#regular-expressions
* | allow to pass numerical value to size option in image_tagNihad Abbasov2012-09-251-4/+5
| | | | | | | | | | This will set image's both width and height attributes to value passed in size option.
* | Support helper tests using spec DSLMike Moore2012-09-241-4/+3
| | | | | | | | | | 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/+3
|/
* copy edits 137e5d9Xavier Noria2012-09-181-1/+1
|
* Add extra documentation for password_fieldArek W2012-09-181-1/+1
| | | | I think this should be explicit as the password fields behaviour is inconsistent with other fields in this regard. It had me scratching my head until I dug through the source code.
* Merge pull request #7669 from guilleiguaran/rename-rb-handlerCarlos Antonio da Silva2012-09-171-1/+1
|\ | | | | 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-1/+1
| | | | | | | | classes
* | allowing pass couple extension to register_template_handler callTima Maslyuchenko2012-09-171-3/+6
|/
* use presence method instead of checking for blankNihad Abbasov2012-09-141-1/+1
|
* Add .rb template handlerGuillermo Iguaran2012-09-111-0/+1
| | | | This handler simply allows arbitrary Ruby code as a template
* Tidy up excerpt separator logic a bitCarlos Antonio da Silva2012-09-081-17/+11
|
* Refactor some date helpers to use merge!Carlos Antonio da Silva2012-09-081-5/+9
| | | | Also just set the hash value instead of merging when it's only one key.
* Add a separation option for the excerpt functionGuirec Corbel2012-09-081-11/+49
| | | | | | | | | | 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.
* fix tests on Ruby 2.0.0Aaron Patterson2012-09-061-1/+1
|
* Define just the cattr_reader.Rafael Mendonça França2012-09-051-1/+2
| | | | | This will trim down the API and avoid some error that can be made changing the cache object.
* Use the same logger that ActionView::Base for the DigestorRafael Mendonça França2012-09-051-2/+5
|
* Remove unneeded requiresRafael Mendonça França2012-09-051-7/+3
| | | | | We should not require all the core extensions inside the frameworks. The logger is already defined in the Action View framework.
* We dont need to include the name and the format in the digest -- source is ↵David Heinemeier Hansson2012-09-041-1/+1
| | | | authoritative enough
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-09-011-0/+4
|\
| * reverting changes from commit b0896c38Sven Kraeuter | 5v3n2012-09-011-1/+1
| |
| * there is no "delete" action in a controllerSven Kräuter2012-08-311-1/+1
| |
| * Added example of using options_for_select() with select_tag()Kir Shatrov2012-08-301-0/+4
| |
* | Remove unneeded requirePiotr Sarnacki2012-09-011-1/+0
| |
* | Sprockets-rails tests failDmitry Vorotilin2012-09-012-3/+8
| | | | | | | | | | | | | | Method invalid_asset_host! was delegated to controller but sprockets compile assets in their own scope without controller. And if we set asset_host with second parameter it should raise error through invalid_asset_host!. But since controller is nil it cannot be reached.