Class: ActionDispatch::DebugView
Constant Summary
-
RESCUES_TEMPLATE_PATHS =
# File 'actionpack/lib/action_dispatch/middleware/debug_view.rb', line 12[File.("templates", __dir__)]
::ERB::Util - Included
HTML_ESCAPE, HTML_ESCAPE_ONCE_REGEXP, INVALID_TAG_NAME_FOLLOWING_REGEXP, INVALID_TAG_NAME_START_REGEXP, SAFE_XML_TAG_NAME_REGEXP, TAG_NAME_FOLLOWING_CODEPOINTS, TAG_NAME_REPLACEMENT_CHAR, TAG_NAME_START_CODEPOINTS
::ActionView::Helpers::AssetUrlHelper - Included
ASSET_EXTENSIONS, ASSET_PUBLIC_DIRECTORIES, URI_REGEXP
::ActionView::Helpers::TagHelper - Included
ARIA_PREFIXES, BOOLEAN_ATTRIBUTES, DATA_PREFIXES, PRE_CONTENT_STRINGS, TAG_TYPES
::ActionView::Helpers::AssetTagHelper - Included
::ActionView::Helpers::ContentExfiltrationPreventionHelper - Included
CLOSE_CDATA_COMMENT, CLOSE_FORM_TAG, CLOSE_OPTION_TAG, CLOSE_QUOTES_COMMENT, CONTENT_EXFILTRATION_PREVENTION_MARKUP
::ActionView::Helpers::ControllerHelper - Included
::ActionView::Helpers::DateHelper - Included
MINUTES_IN_QUARTER_YEAR, MINUTES_IN_THREE_QUARTERS_YEAR, MINUTES_IN_YEAR
::ActionView::Helpers::UrlHelper - Included
BUTTON_TAG_METHOD_VERBS, STRINGIFIED_COMMON_METHODS
::ActionView::RecordIdentifier - Included
::ActionView::Helpers::JavaScriptHelper - Included
::ActionView::Helpers::TranslationHelper - Included
Class Attribute Summary
::ActionView::Base - Inherited
| ._routes, ._routes?, | |
| .annotate_rendered_view_with_filenames | Annotate rendered view with file names. |
| .automatically_disable_submit_tag | Specify whether submit_tag should automatically disable on click. |
| .cache_template_loading, .cache_template_loading=, | |
| .default_formats | Specify default_formats that can be rendered. |
| .field_error_proc | Specify the proc used to decorate input tags that refer to attributes with errors. |
| .logger, .logger?, .prefix_partial_path_with_controller_namespace, .prefix_partial_path_with_controller_namespace?, | |
| .remove_hidden_field_autocomplete | Specify whether to omit autocomplete="off" on hidden inputs generated by helpers. |
| .streaming_completion_on_exception | How to complete the streaming when an exception occurs. |
| .xss_safe? | |
Class Method Summary
- .new(assigns) ⇒ DebugView constructor
::ActionView::Base - Inherited
Instance Attribute Summary
- #params_valid? ⇒ Boolean readonly
- #protect_against_forgery? ⇒ Boolean readonly
::ActionView::Base - Inherited
::ActionView::Helpers - Included
::ActionView::Helpers::TranslationHelper - Included
| #raise_on_missing_translations | Specify whether an error should be raised for missing translations. |
::ActionView::Helpers::JavaScriptHelper - Included
::ActionView::Helpers::FormHelper - Included
| #default_form_builder, #form_with_generates_ids, #form_with_generates_remote_forms, #multiple_file_field_include_hidden |
::ActionView::Helpers::FormTagHelper - Included
::ActionView::Helpers::SanitizeHelper - Included
::ActionView::Helpers::UrlHelper - Included
::ActionView::Helpers::ControllerHelper - Included
::ActionView::Helpers::ContentExfiltrationPreventionHelper - Included
::ActionView::Helpers::CacheHelper - Included
| #caching? | Returns whether the current view fragment is within a |
::ActionView::Helpers::AssetTagHelper - Included
| #apply_stylesheet_media_default, #auto_include_nonce_for_scripts, #auto_include_nonce_for_styles, #image_decoding, #image_loading, #preload_links_header |
::ActionView::Context - Included
Instance Method Summary
- #compiled_method_container
- #debug_hash(object)
- #debug_headers(headers)
- #debug_params(params)
- #editor_url(location, line: nil)
- #render
::ActionView::Base - Inherited
::ActionView::Helpers::TranslationHelper - Included
| #l | |
| #localize | Delegates to |
| #t | |
| #translate | Delegates to |
| #missing_translation, #scope_key_by_partial | |
::ActionView::Helpers::RenderingHelper - Included
| #_layout_for | Overrides _layout_for in the context object so it supports the case a block is passed to a partial. |
| #render | Renders a template and returns the result. |
::ActionView::Helpers::NumberHelper - Included
::ActionView::Helpers::JavaScriptHelper - Included
| #escape_javascript | Escapes carriage returns and single and double quotes for JavaScript segments. |
| #j | |
| #javascript_tag | Returns a JavaScript tag with the |
| #javascript_cdata_section | |
::ActionView::Helpers::FormOptionsHelper - Included
| #collection_check_boxes | |
| #collection_checkboxes | Returns check box tags for the collection of existing return values of |
| #collection_radio_buttons | Returns radio button tags for the collection of existing return values of |
| #collection_select | Returns and tags for the collection of existing return values of |
| #grouped_collection_select | Returns , and tags for the collection of existing return values of |
| #grouped_options_for_select | Returns a string of tags, like |
| #option_groups_from_collection_for_select | Returns a string of tags, like |
| #options_for_select | Accepts a container (hash, array, enumerable, your type) and returns a string of option tags. |
| #options_from_collection_for_select | Returns a string of option tags that have been compiled by iterating over the |
| #select | Create a select tag and a series of contained option tags for the provided object and method. |
| #time_zone_options_for_select | Returns a string of option tags for pretty much any time zone in the world. |
| #time_zone_select | Returns select and option tags for the given object and method, using |
| #weekday_options_for_select | Returns a string of option tags for the days of the week. |
| #weekday_select | Returns select and option tags for the given object and method, using |
| #extract_selected_and_disabled, #extract_values_from_collection, #option_html_attributes, #option_text_and_value, #option_value_selected?, #prompt_text, #value_for_collection | |
::ActionView::Helpers::FormHelper - Included
| #check_box | Alias for ActionView::Helpers::FormHelper#checkbox. |
| #checkbox | Returns a checkbox tag tailored for accessing a specified attribute (identified by |
| #color_field | Returns a text_field of type "color". |
| #date_field | Returns a text_field of type "date". |
| #datetime_field | Returns a text_field of type "datetime-local". |
| #datetime_local_field | |
| #email_field | Returns a text_field of type "email". |
| #fields | Scopes input fields with either an explicit scope or model. |
| #fields_for | Creates a scope around a specific model object like |
| #file_field | Returns a file upload input tag tailored for accessing a specified attribute (identified by |
| #form_for | Creates a form that allows the user to create or update the attributes of a specific model object. |
| #form_with | Creates a form tag based on mixing URLs, scopes, or models. |
| #hidden_field | Returns a hidden input tag tailored for accessing a specified attribute (identified by |
| #label | Returns a label tag tailored for labelling an input field for a specified attribute (identified by |
| #month_field | Returns a text_field of type "month". |
| #number_field | Returns an input tag of type "number". |
| #password_field | Returns an input tag of the "password" type tailored for accessing a specified attribute (identified by |
| #phone_field | |
| #radio_button | Returns a radio button tag for accessing a specified attribute (identified by |
| #range_field | Returns an input tag of type "range". |
| #search_field | Returns an input of type "search" for accessing a specified attribute (identified by |
| #telephone_field | Returns a text_field of type "tel". |
| #text_area | Alias for ActionView::Helpers::FormHelper#textarea. |
| #text_field | Returns an input tag of the "text" type tailored for accessing a specified attribute (identified by |
| #textarea | Returns a textarea opening and closing tag set tailored for accessing a specified attribute (identified by |
| #time_field | Returns a text_field of type "time". |
| #url_field | Returns a text_field of type "url". |
| #week_field | Returns a text_field of type "week". |
| #default_form_builder_class, #html_options_for_form_with, #instantiate_builder, #_object_for_form_builder, #apply_form_for_options! | |
::ActionView::RecordIdentifier - Included
| #dom_class | The DOM class convention is to use the singular form of an object or class. |
| #dom_id | The DOM id convention is to use the singular form of an object or class with the id following an underscore. |
| #dom_target | The DOM target convention is to concatenate any number of parameters into a string. |
| #record_key_for_dom_id | Returns a string representation of the key attribute(s) that is suitable for use in an HTML DOM id. |
::ActionView::ModelNaming - Included
| #convert_to_model | Converts the given object to an Active Model compliant one. |
| #model_name_from_record_or_class | |
::ActionView::Helpers::FormTagHelper - Included
| #button_tag | Creates a button element that defines a |
| #check_box_tag | |
| #checkbox_tag | Creates a check box form input tag. |
| #color_field_tag | Creates a text field of type "color". |
| #date_field_tag | Creates a text field of type "date". |
| #datetime_field_tag | Creates a text field of type "datetime-local". |
| #datetime_local_field_tag | |
| #email_field_tag | Creates a text field of type "email". |
| #field_id | Generate an HTML |
| #field_name | Generate an HTML |
| #field_set_tag | Creates a field set for grouping HTML form elements. |
| #fieldset_tag | |
| #file_field_tag | Creates a file upload field. |
| #form_tag | Starts a form tag that points the action to a URL configured with |
| #hidden_field_tag | Creates a hidden form input field used to transmit data that would be lost due to HTTP's statelessness or data that should be hidden from the user. |
| #image_submit_tag | Displays an image which when clicked will submit the form. |
| #label_tag | Creates a label element. |
| #month_field_tag | Creates a text field of type "month". |
| #number_field_tag | Creates a number field. |
| #password_field_tag | Creates a password field, a masked text field that will hide the users input behind a mask character. |
| #phone_field_tag | |
| #radio_button_tag | Creates a radio button; use groups of radio buttons named the same to allow users to select from a group of options. |
| #range_field_tag | Creates a range form element. |
| #search_field_tag | Creates a text field of type "search". |
| #select_tag | Creates a dropdown selection box, or if the :multiple option is set to true, a multiple choice selection box. |
| #submit_tag | Creates a submit button with the text |
| #telephone_field_tag | Creates a text field of type "tel". |
| #text_area_tag | |
| #text_field_tag | Creates a standard text field; use these text fields to input smaller chunks of text like a username or a search query. |
| #textarea_tag | Creates a text input area; use a textarea for longer text inputs such as blog posts or descriptions. |
| #time_field_tag | Creates a text field of type "time". |
| #url_field_tag | Creates a text field of type "url". |
| #utf8_enforcer_tag | Creates the hidden UTF-8 enforcer tag. |
| #week_field_tag | Creates a text field of type "week". |
| #convert_direct_upload_option_to_url, #extra_tags_for_form, #form_tag_html, #form_tag_with_body, #html_options_for_form, | |
| #sanitize_to_id | |
| #set_default_disable_with | |
::ActionView::Helpers::TextHelper - Included
| #concat | The preferred method of outputting text in your views is to use the <%= "text" %> eRuby syntax. |
| #current_cycle | Returns the current cycle string after a cycle has been started. |
| #cycle | Creates a Cycle object whose |
| #excerpt | Extracts the first occurrence of |
| #highlight | Highlights occurrences of |
| #pluralize | Attempts to pluralize the |
| #reset_cycle | Resets a cycle so that it starts from the first element the next time it is called. |
| #safe_concat, | |
| #simple_format | Returns |
| #truncate | Truncates |
| #word_wrap | Wraps the |
| #cut_excerpt_part, | |
| #get_cycle | The cycle helpers need to store the cycles in a place that is guaranteed to be reset every time a page is rendered, so it uses an instance variable of |
| #set_cycle, #split_paragraphs | |
::ActionView::Helpers::SanitizeHelper - Included
| #sanitize | Sanitizes HTML input, stripping all but known-safe tags and attributes. |
| #sanitize_css | Sanitizes a block of CSS code. |
| #strip_links | Strips all link tags from |
| #strip_tags | Strips all HTML tags from |
::ActionView::Helpers::UrlHelper - Included
| #button_to | Generates a form containing a single button that submits to the URL created by the set of |
| #current_page? | True if the current request URI was generated by the given |
| #link_to | Creates an anchor element of the given |
| #link_to_if | Creates a link tag of the given |
| #link_to_unless | Creates a link tag of the given |
| #link_to_unless_current | Creates a link tag of the given |
| #mail_to | Creates a mailto link tag to the specified |
| #phone_to | Creates a TEL anchor link tag to the specified |
| #sms_to | Creates an SMS anchor link tag to the specified |
| #add_method_to_attributes!, #convert_options_to_data_attributes, #link_to_remote_options?, #method_for_options, #method_not_get_method?, #method_tag, #remove_trailing_slash!, | |
| #to_form_params | Returns an array of hashes each containing |
| #token_tag, #url_target, | |
| #url_for | Basic implementation of url_for to allow use helpers without routes existence. |
| #_back_url, #_filtered_referrer | |
::ActionView::Helpers::DebugHelper - Included
| #debug | Returns a YAML representation of . |
::ActionView::Helpers::DateHelper - Included
| #date_select | Returns a set of select tags (one for year, month, and day) pre-selected for accessing a specified date-based attribute (identified by |
| #datetime_select | Returns a set of select tags (one for year, month, day, hour, and minute) pre-selected for accessing a specified datetime-based attribute (identified by |
| #distance_of_time_in_words | Reports the approximate distance in time between two |
| #distance_of_time_in_words_to_now | |
| #relative_time_in_words | Like |
| #select_date | Returns a set of HTML select-tags (one for year, month, and day) pre-selected with the |
| #select_datetime | Returns a set of HTML select-tags (one for year, month, day, hour, minute, and second) pre-selected with the |
| #select_day | Returns a select tag with options for each of the days 1 through 31 with the current day selected. |
| #select_hour | Returns a select tag with options for each of the hours 0 through 23 with the current hour selected. |
| #select_minute | Returns a select tag with options for each of the minutes 0 through 59 with the current minute selected. |
| #select_month | Returns a select tag with options for each of the months January through December with the current month selected. |
| #select_second | Returns a select tag with options for each of the seconds 0 through 59 with the current second selected. |
| #select_time | Returns a set of HTML select-tags (one for hour and minute). |
| #select_year | Returns a select tag with options for each of the five years on each side of the current, which is selected. |
| #time_ago_in_words | Like |
| #time_select | Returns a set of select tags (one for hour, minute, and optionally second) pre-selected for accessing a specified time-based attribute (identified by |
| #time_tag | Returns an HTML time tag for the given date or time. |
| #normalize_distance_of_time_argument_to_time | |
::ActionView::Helpers::CsrfHelper - Included
| #csrf_meta_tag | |
| #csrf_meta_tags | Returns meta tags "csrf-param" and "csrf-token" with the name of the cross-site request forgery protection parameter and token, respectively. |
::ActionView::Helpers::CspHelper - Included
| #csp_meta_tag | Returns a meta tag "csp-nonce" with the per-session nonce value for allowing inline |