サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
WWDC25
apidock.com
Instance methods (56) alias_attribute alias_method_chain (<= v5.0.0.1) anonymous? as_json as_load_path (<= v2.3.8) attr_accessor_with_default (<= v3.1.0) attr_internal attr_internal_accessor attr_internal_define attr_internal_ivar_name attr_internal_reader attr_internal_writer cattr_accessor cattr_reader cattr_writer const_missing (<= v2.1.0) deep_dup delegate delegate_missing_to deprecate duplica
Method deprecated or moved This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here. These similar methods exist in v7.1.3.2: AbstractController::Helpers::ClassMethods#helper_method ActionView::TestCase::Behavior::ClassMethods#helper_method Declare a controller method as a helper. For example, the following makes the current_user controller
Class methods (1) lookup_missing_generator (<= v2.3.8) Instance methods (58) ` (<= v5.2.3) acts_like? app (<= v3.1.0) as_json blank? bundler? (<= v3.2.13) class_eval (<= v2.3.8) controller (<= v3.1.0) copy_instance_variables_from (<= v3.0.9) create (<= v3.0.9) create_fixtures (<= v5.1.7) deep_dup destroy (<= v3.0.9) duplicable? edit (<= v3.0.9) extended_by (<= v2.3.8) extend_with_included_module..
Instance methods (25) auto_link (<= v3.0.9) auto_linked? (<= v3.0.9) auto_link_email_addresses (<= v3.0.9) auto_link_urls (<= v3.0.9) concat current_cycle cut_excerpt_part cycle excerpt get_cycle highlight markdown (<= v2.3.8) pluralize reset_cycle safe_concat sanitize (<= v1.2.6) set_cycle simple_format split_paragraphs strip_links (<= v1.2.6) strip_tags (<= v1.2.6) textilize (<= v2.3.8) textiliz
1.0.0 1.1.6 1.2.6 2.0.3 2.1.0 2.2.1 2.3.8 3.0.0 (0) 3.0.9 (0) 3.1.0 (1) 3.2.1 (0) 3.2.8 (0) 3.2.13 (0) 4.0.2 (30) 4.1.8 (0) 4.2.1 (-38) 4.2.7 4.2.9 5.0.0.1 5.1.7 5.2.3 6.0.0 6.1.3.1 6.1.7.7 7.0.0 7.1.3.2 7.1.3.4 What's this?
Class methods (21) civil commercial httpdate iso8601 jd jisx0301 json_create new new_by_frags (<= v1_9_2_180) now nth_kday (>= v1_9_1_378) ordinal parse rfc2822 rfc3339 rfc822 strptime _strptime today (<= v1_9_2_180) weeknum (>= v1_8_6_287) xmlschema Instance methods (22) as_json hour (>= v2_6_3) iso8601 iso8601_timediv (<= v1_9_2_180) jisx0301 min (>= v2_6_3) minute (>= v2_6_3) new_offset (>= v2_
Convert an enumerable to a hash, using the block result as the key and the element as the value. people.index_by(&:login) # => { "nextangle" => <Person ...>, "chade-" => <Person ...>, ...} people.index_by { |person| "#{person.first_name} #{person.last_name}" } # => { "Chade- Fowlersburg-e" => <Person ...>, "David Heinemeier Hansson" => <Person ...>, ...}
Method deprecated or moved This method is deprecated or moved on the latest stable version. The last existing version (v4.2.9) is shown here. These similar methods exist in v7.1.3.2: ActiveModel::AttributeAssignment#assign_attributes ActiveSupport::CurrentAttributes#assign_attributes Allows you to set all the attributes by passing in a hash of attributes with keys matching the attribute names (whi
Instance methods (61) add_association_callbacks (<= v3.0.9) add_counter_cache_callbacks (<= v3.0.9) add_deprecated_api_for_has_... (<= v1.2.6) add_limited_ids_condition! (<= v2.3.8) add_multiple_associated_sav... (<= v2.2.1) add_multiple_associated_val... (<= v2.2.1) add_single_associated_save_... (<= v2.1.0) add_single_associated_valid... (<= v2.2.1) add_sti_conditions! (<= v1.0.0) add_touch_call
Class methods (1) included (<= v2.3.8) Instance methods (35) aggregate_column all_attributes? async_average async_count async_ids async_maximum async_minimum async_pick async_pluck async_sum average build_count_subquery calculate column_alias_for (<= v7.0.0) column_for (<= v4.1.8) count distinct_select? execute_grouped_calculation execute_simple_calculation has_include? ids lookup_cast_type_from_j
1.0.0 (0) 1.1.6 (0) 1.2.6 (5) 2.0.3 (17) 2.1.0 (0) 2.2.1 (0) 2.3.8 (11) 3.0.0 3.0.9 3.1.0 3.2.1 3.2.8 3.2.13 4.0.2 4.1.8 4.2.1 4.2.7 4.2.9 5.0.0.1 5.1.7 5.2.3 6.0.0 6.1.3.1 6.1.7.7 7.0.0 7.1.3.2 7.1.3.4 What's this? Class methods (218) === (<= v3.2.13) abstract_class? (<= v3.1.0) accessible_attributes (<= v2.3.8) active_connection_name (<= v2.1.0) add_conditions! (<= v2.3.8) add_group! (<= v2.3.8)
Class methods (1) wrap Instance methods (35) as_json compact_blank! deep_dup encode_json (<= v4.0.2) excluding extract! extract_options! fifth forty_two fourth from including in_groups in_groups_of inquiry sample (<= v3.2.13) second second_to_last split sum (<= v7.0.0) third third_to_last to to_default_s (<= v7.0.0) to_formatted_s to_fs to_json (<= v2.3.8) to_param to_query to_s (<= v7.0.0) to_sen
Instance methods (37) add_confirm_to_attributes! (<= v3.0.9) add_disable_with_to_attribu... (<= v3.0.9) add_method_to_attributes! array_or_string_for_javascript (<= v3.2.13) _back_url button_to confirm_javascript_function (<= v2.3.8) convert_boolean_attributes! (<= v4.2.9) convert_options_to_data_att... convert_options_to_javascript! (<= v2.3.8) _current_page? current_page? _filtered_referrer link
Class methods (1) included (<= v2.3.8) Instance methods (14) act_on_ignored_order act_on_order_or_limit_ignored (<= v5.0.0.1) apply_finish_limit apply_limits apply_start_limit batch_condition batch_on_loaded_relation batch_on_unloaded_relation batch_order (<= v7.0.0) build_batch_orders find_each find_in_batches get_the_order_of_primary_key in_batches = private = protected find_in_batches(start: ni
1.0.0 1.1.6 1.2.6 2.0.3 2.1.0 2.2.1 2.3.8 (0) 3.0.0 (7) 3.0.9 (-1) 3.1.0 (26) 3.2.1 3.2.8 3.2.13 4.0.2 4.1.8 4.2.1 4.2.7 4.2.9 5.0.0.1 5.1.7 5.2.3 6.0.0 6.1.3.1 6.1.7.7 7.0.0 7.1.3.2 7.1.3.4 What's this? Class methods (218) === (<= v3.2.13) abstract_class? (<= v3.1.0) accessible_attributes (<= v2.3.8) active_connection_name (<= v2.1.0) add_conditions! (<= v2.3.8) add_group! (<= v2.3.8) add_joins!
Creates a form that allows the user to create or update the attributes of a specific model object. The method can be used in several slightly different ways, depending on how much you wish to rely on Rails to infer automatically from the model how the form should be constructed. For a generic model object, a form can be created by passing form_for a string or symbol representing the object we are
Returns a hash representing the model. Some configuration can be passed through options. The option include_root_in_json controls the top-level behavior of as_json. If true, as_json will emit a single root node named after the object’s type. The default value for include_root_in_json option is false. user = User.find(1) user.as_json # => { "id" => 1, "name" => "Konata Izumi", "age" => 16, # "creat
select_tag(name, option_tags = nil, options = {}) public Creates a dropdown selection box, or if the :multiple option is set to true, a multiple choice selection box. Helpers::FormOptions can be used to create common select boxes such as countries, time zones, or associated records. option_tags is a string containing the option tags for the select box. Options :multiple - If set to true, the selec
Like distance_of_time_in_words, but where to_time is fixed to Time.now. time_ago_in_words(3.minutes.from_now) # => 3 minutes time_ago_in_words(3.minutes.ago) # => 3 minutes time_ago_in_words(Time.now - 15.hours) # => about 15 hours time_ago_in_words(Time.now) # => less than a minute time_ago_in_words(Time.now, include_seconds: true) # => less than 5 seconds from_time = Time.now - 3.days - 14.minut
fields_for(record_name, record_object = nil, options = {}, &block) public Creates a scope around a specific model object like form_for, but doesn’t create the form tags themselves. This makes fields_for suitable for specifying additional model objects in the same form. Although the usage and purpose of fields_for is similar to form_for's, its method signature is slightly different. Like form_for,
Method deprecated or moved This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here. These similar methods exist in v7.1.3.2: ActionController::MimeResponds#respond_to Without web-service support, an action which collects the data for displaying a list of people might look something like this: def index @people = Person.find(:all) end Here’s
Method deprecated or moved This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here. These similar methods exist in v7.1.3.2: ActiveSupport::ToJsonWithActiveSupportEncoder#to_json ActiveStorage::Filename#to_json Returns a JSON string representing the model. Some configuration is available through options. The option ActiveRecord::Base.includ
Class methods (1) included (<= v2.3.8) Instance methods (14) attribute_change (<= v2.3.8) attribute_changed? (<= v2.3.8) attribute_was (<= v2.3.8) attribute_will_change! (<= v2.3.8) changed (<= v2.3.8) changed? (<= v2.3.8) changed_attributes (<= v2.3.8) changes (<= v2.3.8) field_changed? (<= v2.3.8) reload_with_dirty (<= v2.3.8) save_with_dirty (<= v2.3.8) save_with_dirty! (<= v2.3.8) update_with_
1.0.0 (0) 1.1.6 (2) 1.2.6 (6) 2.0.3 (-1) 2.1.0 (0) 2.2.1 (3) 2.3.8 (4) 3.0.0 3.0.9 3.1.0 3.2.1 3.2.8 3.2.13 4.0.2 4.1.8 4.2.1 4.2.7 4.2.9 5.0.0.1 5.1.7 5.2.3 6.0.0 6.1.3.1 6.1.7.7 7.0.0 7.1.3.2 7.1.3.4 What's this? Class methods (23) action_methods (<= v2.3.8) append_view_path (<= v2.3.8) call (<= v2.3.8) controller_class_name (<= v2.3.8) controller_name (<= v2.3.8) controller_path (<= v2.3.8) exe
1_8_6_287 (0) 1_8_7_72 (4) 1_8_7_330 (0) 1_9_1_378 (0) 1_9_2_180 (15) 1_9_3_125 (37) 1_9_3_392 (0) 2_1_10 (38) 2_2_9 (-3) 2_4_6 (-5) 2_5_5 (3) 2_6_3 (16) What's this? Latest events Git repository cloned from https://github.com/ruby/ruby.git about 1 year ago Git repository cloned from https://github.com/ruby/ruby.git about 1 year ago Git repository cloned from https://github.com/ruby/ruby.git almos
Instance methods (130) add_belongs_to add_check_constraint add_column add_column_for_alter add_column_options! (<= v4.0.2) add_columns add_foreign_key add_index add_index_options add_index_sort_order add_options_for_index_columns add_order_by_for_associatio... (<= v2.3.8) add_reference add_timestamps add_timestamps_for_alter assume_migrated_upto_version build_add_column_definition build_change_col
1.0.0 (0) 1.1.6 (4) 1.2.6 (16) 2.0.3 (18) 2.1.0 (36) 2.2.1 (13) 2.3.8 (11) 3.0.0 (-1) 3.0.9 (22) 3.1.0 (10) 3.2.1 (0) 3.2.8 (1) 3.2.13 (0) 4.0.2 (17) 4.1.8 (9) 4.2.1 (5) 4.2.7 (1) 4.2.9 (1) 5.0.0.1 (23) 5.1.7 (9) 5.2.3 (38) 6.0.0 (30) 6.1.3.1 (8) 6.1.7.7 (1) 7.0.0 (9) 7.1.3.2 (31) 7.1.3.4 (0) What's this? Latest events Imported version v7.1.3.4 10 months ago Git repository cloned from https://gith
Choose a project RSpec Behaviour Driven Development framework for Ruby 6 imported versions - 25 notes - Browse - Search Ruby on Rails The open source web application framework for the Ruby programming language 27 imported versions - 1313 notes - Browse - Search Ruby A dynamic, open source programming language with a focus on simplicity and productivity 12 imported versions - 370 notes - Browse - S
このページを最初にブックマークしてみませんか?
『Front page - APIdock』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く