File: //usr/local/rvm/gems/ruby-2.7.4/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::BlankLine o;
; [ 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