Programming Tips
Research on Ruby on Rails, JavaScript, CSS, HTML, Php and Flash
Showing posts with label
replace character in ror
.
Show all posts
Showing posts with label
replace character in ror
.
Show all posts
Thursday, October 29, 2009
Ruby on Rails : Replace character
Replace spacing to underscore.
<%= person.firstname %>
--> Peterson Gate
<%= person.firstname.gsub(/ /, '_') %>
--> Peterson_Gate
Older Posts
Home
Subscribe to:
Posts (Atom)