Rails routes is used to map the ‘url’ with proper controller and action. Its like the .htaccess for the php world.
But many a times we require to map the same pattern of the url to different actions of different controller.
Myntra.com Started in 2007 by three IIT alumni as a simple Ecommerce portal selling cool products like mugs, caps, bags, Sweatshirts, but now has transformed Into multi-brand online fashion store. After raising 3 rounds of funding of around $39 million it has become a big player in the eCommerce space. Developed in PHP, the site is quite fast and has a very intuitive user experience. But I have to admit that too many choices make it confusing to shop and select. They have a very versatile choice in apparels. Almost all top brands with the latest fashion trend are available in their catalogue.
Jabong.com Founded in 2011, by an amazing trio, Jabong has managed to make a mark very soon due to it’s aggressive and innovative marketing strategies. Like every multi brand fashion Ecommerce Jabong has almost every brand on its plate. A PHP site with citrix Netscalar platform it lacks no speed. Jabong initially known for women accessories and clothes, now has around 30000 products. With around more than $10 million funding by the German incubator Rocket Internet, Jabong looks like a good bet. I had a very good experience shopping with jabong, but would like if they had more innovative products.
Ruby is one of the most flexible language that I have worked with. Due to its flexibility you fall in love with it and fall in love with programming. Recently I was taking a training program for ruby beginners.
I gave them the following problems
I recently shifted to octopress and I am loving it. It is an awesome blogging platform for developers.
Cool looking layout ,simple to use, awesome use of HTML5 and CSS3.
But there are some hidden features and changes that need to be done for better SEO.
Meta data description for every blog
When a post file is generate with the command rake new_post[title],the keys layout, title, date, comments and categories are
automatically created, but if you add two more keys “keywords” and “description” it automatically creates meta tags for that corresponding post
BetterLabs: BetterLabs, one the early adopters of Ruby on Rails is located at San Jose, California USA and Pune, India. It incubates on innovative ideas and works with start-ups to convert from an idea to a product. It also specializes on its own products in the domain of SaaS marketing automation, B2B lead generation and business intelligence. It has a core team which includes software engineers, server engineers, social media analyst SEO specialist, UI designers and sales analysts. It was founded by Vaibhav Domkundwar in 2004.
Josh software: An expert in Ruby on Rails development, Josh software was started in 2007 by Gautam Rege and Sethupathi Asokan. The author of the major Ruby on Rails learning sites and books, Satish Talim is the Director of Josh Software. Josh provides products in major industrial domains. They also experiment with other Ruby framework like Merb and Sinatra.
Using the Salesforce bulk API for pushing many numbers of records in a single API call.
The official Heroku ‘gem databasedotcom’ which is used as an adapter to talk with the Salesforcedatabase doesn’t support bulk API. I did a lot of research, but then I found that ‘gem rforce’ gem uses bulk API, but wasn’t satisfying. So finally I decided to write a gem with help of existing resources where I can use ActiveRecord type methods to access the database along with Oauth2 protocol for authentication. The batch and the job governor limits are also taken care in this gem.
Using the gem is simple and straightforward.
or add gem salesforce_bulk_api in your Gemfile.
You can use any method of authentication by using this gem
Scraping linkedin public profiles for data validation.
There are many use cases when the data from Linkedin needs to be scraped for data collection or contact validation,hence there is a gem in ruby called ‘linkedin-scraper’ which helps to scrape the public profile when the link of a certain profile is given.
First install the gem
Once the gem is installed,You can access it using the following code
PHP vs Ruby – Practical Language Differences
There are rather significant syntactical differences between PHP and Ruby. For example PHP requires semicolons at the end of lines and generally requires curly brackets to enclose blocks of code. Ruby, on the other hand, uses newline characters to denote the end of a line of code and many code constructs such as function definitions, and various loops are ended with the word “end” rather than being surrounded by curly braces. Below is an example of PHP vs Ruby syntax.