Simplest: params:id = params:id or params:id Moar fancy: params:id Yet another way to do this: params:id. Concat If you really really for some bizzare reason insist on gsub: params:id. Gsub!
/$.
Simplest: params:id = params:id + '/' or params:id += '/' Moar fancy: params:id /$.
Like this: params:id + '/' == 'shirts/' No gsub needed :) Unless you there might be a trailing slash in some cases. Then use: params:id = params:id + '/' unless params:id. Match(/.
*\/$/) params:id == 'shirts.
If you're trying to build a URL this way, you're probably doing it wrong, but I can't tell you the right way to do it. If you're trying to build a directory path this way, and there's other bits to the path, use something like File.join. Link to the documentation.
The tests are based on letting squeeze(' ') or gsub() strip the duplicated spaces. As I expected, squeeze(' ') blows away the regex. Regex using a space character are faster than the equivalent pattern using \s.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.