d2wbsw
Last Updated: February 25, 2016
·
1.359K
· excitedubai
Me

How to know if a website uses Rails

Sometimes we want to know, what tech stack a website uses. Say facebook, it uses PHP in it's tech stack. Most websites nowadays use Rails (atleast I think so). We can easily find out if a website uses Rails, with a simple client-side check.

Open your the built in JavaScript Console, in your browser, and then type:-

$.rails

If the command returns a JavaScript Object, the site uses Rails. We know this because of the JavaScript library, Rails comes with, rails.js. It is built of jQuery, which is why it uses the $ sign. All rails apps, use rails.js as a dependency, so if you ever see it on a site, it is most likely that specific site is a Rails app.You can test it on Coderwall itself! (yes, Coderwall is a rails app).

Say Thanks
Respond

2 Responses
Add your response

14220
5a59a839efe5bca4d6bffc8474ea2119

I wonder if websites will go out of their way to obfuscate this information (it's not 100%, but security through obscurity is helpful). I'm almost positive GitHub uses rails and this trick doesn't work.

over 1 year ago ·
14341
Ad0bf51b8d8c4372f51ba3460355b324

but why in github it's show undefined

over 1 year ago ·