We can do the same thing in Ruby on Rails by defining a different domain for application and assets, that make your assets load faster.
Create a subdomain for your application and use that subdomain to deliver assets for the application. So once subdomain created and propagated paste this in your production.rb
Then create an asset host like this
Now just restart your server and again deploy your application. You will see all the assets are loaded from assets.myawesomedomain.com without cookies. Check GTMetrics ratings for more optimisations.