You can do it with URI
name = "Ruby Programming Language" url = "Example Domain; + URI.escape(name) puts url # Example Domain
You can do it with URI
name = "Ruby Programming Language" url = "Example Domain; + URI.escape(name) puts url # Example Domain