Created
April 19, 2014 19:19
-
-
Save tomaszj/11094658 to your computer and use it in GitHub Desktop.
Controller public/protected methods
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb(main):002:0> PostsController.new.methods | |
=> [:index, :show, :new, :edit, :create, :update, :destroy, :_routes, :rails_mailers_path, :rails_mailers_url, :rails_info_properties_path, :rails_info_properties_url, :rails_info_routes_path, :rails_info_routes_url, :rails_info_path, :rails_info_url, :posts_path, :posts_url, :new_post_path, :new_post_url, :edit_post_path, :edit_post_url, :post_path, :post_url, :_view_paths, :_view_paths?, :_view_paths=, :asset_host, :asset_host=, :assets_dir, :assets_dir=, :javascripts_dir, :javascripts_dir=, :stylesheets_dir, :stylesheets_dir=, :default_asset_host_protocol, :default_asset_host_protocol=, :relative_url_root, :relative_url_root=, :_helpers, :_helpers?, :_helpers=, :_helper_methods, :_helper_methods?, :_helper_methods=, :helpers_path, :helpers_path?, :helpers_path=, :include_all_helpers, :include_all_helpers?, :include_all_helpers=, :hidden_actions, :hidden_actions?, :hidden_actions=, :default_url_options, :default_url_options?, :default_url_options=, :logger, :logger=, :_renderers, :_renderers?, :_renderers=, :etaggers, :etaggers?, :etaggers=, :_process_action_callbacks, :_process_action_callbacks?, :_process_action_callbacks=, :default_static_extension, :default_static_extension=, :perform_caching, :perform_caching=, :_view_cache_dependencies, :_view_cache_dependencies?, :_view_cache_dependencies=, :responder, :responder?, :responder=, :mimes_for_respond_to, :mimes_for_respond_to?, :mimes_for_respond_to=, :rescue_handlers, :rescue_handlers?, :rescue_handlers=, :flash, :alert, :notice, :request_forgery_protection_token, :request_forgery_protection_token=, :forgery_protection_strategy, :forgery_protection_strategy=, :allow_forgery_protection, :allow_forgery_protection=, :_wrapper_options, :_wrapper_options?, :_wrapper_options=, :_protected_ivars, :_compute_redirect_to_location_without_xhr_referer, :_compute_redirect_to_location, :redirect_via_turbolinks_to, :db_runtime, :db_runtime=, :process_action, :cleanup_view_runtime, :append_info_to_payload, :_main_app, :main_app, :view_runtime, :view_runtime=, :render, :send_file, :send_data, :redirect_to, :rescue_with_handler, :show_detailed_exceptions?, :authenticate_or_request_with_http_token, :authenticate_with_http_token, :request_http_token_authentication, :authenticate_or_request_with_http_digest, :authenticate_with_http_digest, :request_http_digest_authentication, :authenticate_or_request_with_http_basic, :authenticate_with_http_basic, :request_http_basic_authentication, :_process_options, :_render_template, :force_ssl_redirect, :verify_authenticity_token, :handle_unverified_request, :verify_same_origin_request, :mark_for_same_origin_verification!, :marked_for_same_origin_verification?, :non_xhr_javascript_response?, :verified_request?, :form_authenticity_token, :form_authenticity_param, :protect_against_forgery?, :params, :params=, :handler_for_rescue, :send_action, :default_render, :method_for_action, :respond_to, :respond_with, :collect_mimes_from_class_level, :retrieve_collector_from_mimes, :view_cache_dependencies, :cache, :fragment_cache_key, :write_fragment, :read_fragment, :fragment_exist?, :expire_fragment, :instrument_fragment_cache, :cache_store, :cache_store=, :run_callbacks, :fresh_when, :stale?, :expires_in, :expires_now, :head, :render_to_body, :_handle_render_options, :_render_option_json, :_render_option_js, :_render_option_xml, :render_to_string, :_layout_conditions, :action_has_layout=, :action_has_layout?, :process, :view_context_class=, :view_context_class, :view_context, :view_renderer, :rendered_format, :headers, :status=, :location=, :content_type=, :status, :location, :content_type, :dispatch, :response_body=, :reset_session, :benchmark, :url_options, :url_for, :optimize_routes_generation?, :_with_routes, :_routes_context, :polymorphic_url, :polymorphic_path, :edit_polymorphic_url, :edit_polymorphic_path, :new_polymorphic_url, :new_polymorphic_path, :convert_to_model, :model_name_from_record_or_class, :translate, :t, :localize, :l, :view_assigns, :_normalize_render, :template_exists?, :view_paths, :formats, :formats=, :locale, :locale=, :_prefixes, :lookup_context, :details_for_lookup, :append_view_path, :prepend_view_path, :env=, :env, :controller_name, :response, :request, :headers=, :response=, :request=, :session, :performed?, :to_a, :middleware_stack, :middleware_stack?, :middleware_stack=, :response_body, :action_name, :action_name=, :controller_path, :action_methods, :available_action?, :config, :blank?, :present?, :presence, :acts_like?, :duplicable?, :deep_dup, :try, :try!, :in?, :presence_in, :to_param, :to_query, :instance_values, :instance_variable_names, :to_json_with_active_support_encoder, :to_json_without_active_support_encoder, :to_json, :as_json, :with_options, :html_safe?, :psych_to_yaml, :to_yaml, :to_yaml_properties, :`, :pretty_print, :pretty_print_cycle, :pretty_print_instance_variables, :pretty_print_inspect, :require_or_load, :require_dependency, :load_dependency, :load, :require, :unloadable, :nil?, :===, :=~, :!~, :eql?, :hash, :<=>, :class, :singleton_class, :clone, :dup, :taint, :tainted?, :untaint, :untrust, :untrusted?, :trust, :freeze, :frozen?, :to_s, :inspect, :methods, :singleton_methods, :protected_methods, :private_methods, :public_methods, :instance_variables, :instance_variable_get, :instance_variable_set, :instance_variable_defined?, :remove_instance_variable, :instance_of?, :kind_of?, :is_a?, :tap, :send, :public_send, :respond_to?, :extend, :display, :method, :public_method, :singleton_method, :define_singleton_method, :object_id, :to_enum, :enum_for, :gem, :silence_warnings, :enable_warnings, :with_warnings, :silence_stderr, :silence_stream, :suppress, :capture, :silence, :quietly, :class_eval, :debugger, :breakpoint, :suppress_warnings, :raise, :pretty_inspect, :==, :equal?, :!, :!=, :instance_eval, :instance_exec, :__send__, :__id__] | |
irb(main):003:0> PostsController.new.methods.count | |
=> 345 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment