Identifying Ruby on Rails Sites
East Agile
Identifying Ruby on Rails Sites

Can you tell if a site was implemented using Ruby on Rails? It is not always obvious. But there are clues that you can use. One of the East Agile developers shares the following advise on this topic.

Based on my experience about rails and web technologies, I have some rules to identify the technology behind a website:
- recognize by URL pattern
- view HTML source
- HTTP monitor by Firebug
- recognize it's not rails-based by understanding other platforms

Basically, I give you 2 simple approaches. To take advantage of these, you may need an understanding of some web technologies and you may need to install more tools. 

1. URL pattern:
   - rails-based website usually does not have those file extensions in URL: php, asp, aspx, do, jsp, ...
   - Rails supports RESTful URL build-in. So URL in rails usually in patterns:
      //new         --> new item page
      //        --> detail page of an item
      ///edit   --> edit an item with id
      /             --> list all items
      ///collection>
     ...
      may be *products*, *users*, *projects*
     Ex:
        /projects/1234/stories    --> all stories in project with id 1234
      /products/new             --> new production page
      ...
2. HTML code: 
    - open a page that has a form (eg: new products page, guestbook page, user registration page ...)
    - view HTML source: (menu View->Page Source in Firefox)
    - find HTML tag

(in FF: press command+F, type  - include less than symbol)
    If the website is developed with Rails technology, you may found those things after the tag:
    -  authenticity_token:
     
<input name="authenticity_token" type="hidden" value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" />
    - field name convention: you may found: model[model_field_name] in the 'name' attribute of input tag:
    
    

An important thing to note: these steps do not prove if a website uses the Rails platform or not.  

905
Share this
Leave a comment
There are no comments about this article, let us know what you think?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.