When a programming language doesn't solve mass/common problems, its popularity will definitely decrease after initial peak.
Rails solve common problems for the most popular platform: web.
Go is created to replace C, a system programming language which could be considered as a niche. You see popular Go projects specifically addressing system level stuff (infrastructure: packer.io, docker, etc).