HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/ruby-2.5.9/doc/activesupport-6.1.4.1/ri/String/parameterize-i.ri
U:RDoc::AnyMethod[iI"parameterize:ETI"String#parameterize;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"^Replaces special characters in a string so that it may be used as part of a 'pretty' URL.;To:RDoc::Markup::BlankLineo;
;	[	I"6If the optional parameter +locale+ is specified, ;TI"@the word will be parameterized as a word of that language. ;TI"GBy default, this parameter is set to <tt>nil</tt> and it will use ;TI")the configured <tt>I18n.locale</tt>.;T@o:RDoc::Markup::Verbatim;	[I"class Person
;TI"  def to_param
;TI"&    "#{id}-#{name.parameterize}"
;TI"  end
;TI"	end
;TI"
;TI"@person = Person.find(1)
;TI"3# => #<Person id: 1, name: "Donald E. Knuth">
;TI"
;TI"/<%= link_to(@person.name, person_path) %>
;TI"A# => <a href="/person/1-donald-e-knuth">Donald E. Knuth</a>
;T:@format0o;
;	[I"ZTo preserve the case of the characters in a string, use the +preserve_case+ argument.;T@o;;	[I"class Person
;TI"  def to_param
;TI";    "#{id}-#{name.parameterize(preserve_case: true)}"
;TI"  end
;TI"	end
;TI"
;TI"@person = Person.find(1)
;TI"3# => #<Person id: 1, name: "Donald E. Knuth">
;TI"
;TI"/<%= link_to(@person.name, person_path) %>
;TI"A# => <a href="/person/1-Donald-E-Knuth">Donald E. Knuth</a>
;T;
0o;
;	[I"/See ActiveSupport::Inflector.parameterize.;T:
@fileI"6lib/active_support/core_ext/string/inflections.rb;T:0@omit_headings_from_table_of_contents_below000[I"8(separator: "-", preserve_case: false, locale: nil);T@5FI"String;TcRDoc::NormalClass00