Modify strings in Rails?
- by Daniel O'Connor
Hey everyone,
So I'm new to Rails (teaching myself as a senior project in high school), and I'm trying to figure out how to modify these strings.
Let's say someone writes the following string in a form: "you know you are a geek when"
How can I automatically change it to this: "You know you are a geek when..."?
I need Rails to check the case of the first letter and check for the three dots then modify the string as necessary. I've looked here, but I can't find anything that would work.
Thanks a lot!