-
Continue reading →: FREEZE GEMS IN RAILS 3 APPLICATION
I have seen lots of forum, where developers keep on asking: “How would I freeze the gems to my Rails-3 application?” Take this URL for example: http://bit.ly/gFzN6Z One developer says that: localize your gems by running this command: bundle install –vendor/gems Others refuses to go with this way. Here’s why? We…
-
Continue reading →: CUSTOM VALIDATION IN PAPERCLIP
In this short tutorial, I will explain you how you can add custom validation messages on the Attachment if you’re using Paperclip plugin or gem. Way 1. This will work if you’re running your rails application on Windows Machine. Solution: a) install mimetype-fu plugin. b) Once installed, open Model, where paperclip settings has been defined. In…
-
Continue reading →: UPGRADE RAILS PERFORMANCE
In this article, we will try to Enhance our rails application performance. To know, how is your rails application is performing on different environments, you must need some plugin or gem. There are many gems/plugins already available which you can use and analyze the performance. First of all, I would like to list…
-
Continue reading →: JOINS IN SQL
Sometimes, its very hard to keep Joins concept in mind.. Being a beginner, experienced SQL programmer, you should know the concept of JOINS. In this article, I will show you the difference between: 1. JOINS and INCLUDE 2. How to you use JOINS in rails 3. JOINS over INCLUDE 4. JOINS and INCLUDE in RAILS-3 Let’s…
-
Continue reading →: SEND TWEETS FROM RAILS APPLICATION
So, we’re continuing from here: https://techprincipal.wordpress.com/2009/08/12/send-tweets-fr…ls-application/ So far we’ve covered the basics of it, now its time to create some controllers…. Open your command/terminal and fire this command: ruby script/generate controller twitt Once you’re done, open this file and write the below code inside it: class TwittController < ApplicationController gem(‘twitter4r’, ‘>=0.2.0′)…
-
Continue reading →: INTEGRATE ORACLE WITH RUBY
Since most of the rails application is now using various databases, this article will show you how you can useORACLE database with rails. For that, we need Oracle XE I will update this post as soon as I can…. Apologize for the dealy. However, you can mail me any of your query…
-
Continue reading →: INTEGRATING CUCUMBER & RPSEC WITH RAILS
Hi Guys, In this article I will cover how to use cucumber and Factory Girl to write Stories in Rails. TDD(Test Driven Development) is the most powerful and most approachable concept in most of the programming language. When it comes to rails, it provides a convenient and simplest way to writeUnit test cases and the stories for your controller, without…
-
Continue reading →: WHAT IS MONGO-DB
What is MongoDB? I saw many forums, visited many blogs, people/programmers are talking about MongoDB a lot. I was wondering what this is! Why developers are showing more and more interest in this. I started searching around and now sharing with all of you, who are not friendly with MongoDB…
-
Continue reading →: DON’T HESITATE TO TRY OUT NEW THINGS IN RUBY
Since last couple of months, I was trying installing Rails-3 on my Windows PC. When I heard, that Rails-3 requires ruby-1.8.7 or higher, I instantly removed Ruby-1.8.6 and all its components and installed 1.8.7 from the fresh point. I was happy, as my new system has Rails-3 now… Wow, what else I need? But…
-
Continue reading →: JQUERY ON RAILS3 AUTO SELECT
In earlier post of mine, we have seen, how to implement “Auto Select”, with the help of Prototype and Rails. Now, that Rails-3 has been released, lot of changes are already made. In-built support for Prototype has been removed. Still if you wish to use prototype, all you need is to install its gem. Here, I am…
