Posted by Alok Swain on April 23rd, 2010

Making a JSON request using jQuery can be sent to a controller in two ways.
Read more »

pixelstats trackingpixel Tags: , ,
Posted by Vamsi Krishna on April 22nd, 2010

In Ruby, we can compare two objects by several number of ways. But I want to compare a particular class instances only on one of its properties(that is attributes of a model).
Read more »

pixelstats trackingpixel Tags: , ,
Posted by Balaji D Loganathan on April 20th, 2010

If you want to automagically login to a remote page, then scrap/read the remote content, Mechanize would be right choice for you.
The sample code will access the demo site http://www.cmsimple.org, login with the password “test”, then reads its protected menus using Nokogiri.
Read more »

pixelstats trackingpixel Tags: , , , , ,
Posted by Alok Swain on April 14th, 2010

Private methods cannot be called directly. If you intend to call a method in a module with the same namespace then module_function () is helpful. But if the module method accesses a private method then it cannot be accessed.
Here is a way to do that.
Read more »

pixelstats trackingpixel Tags:
Posted by Alok Swain on April 13th, 2010

We recently published a blog on Drag-n-Drop Web Components using jQuery & Rails. Now we have extended it to dynamically load blogs and tweets of popular people working with Ruby/Rails and show it in one web page.

You can quickly check the demo at http://popular-blogs.heroku.com/.
Read more »

pixelstats trackingpixel 1 Comment » Tags: , , , ,
Posted by Neelkanth Ram on April 6th, 2010

Lets say You are a developer and not a professional web designer. You are in the process of helping your customer to design the components for their web application. You also guide the web designer to improve the User Experience and look-n-feel. Well you might find the below short tips useful then.
Read more »

pixelstats trackingpixel 1 Comment » Tags: ,
Posted by Vamsi Krishna on March 27th, 2010

Drag and Drop widgets are great functionality to let the user control how they wants to see the information as he can arrange various information blocks according to their preference. This type of functionality can be seen in some sites like Netvibes or iGoogle The interface provides the users to move the widgets to his choice and stored them in their database and show the order in which user stored them, I am trying to do this with the help of jQuery and Rails (v=2.3.5).
You can check out the demo http://draggable-app1.heroku.com/home.
You can download the source from http://github.com/spritle/draggable_app

Read more »

pixelstats trackingpixel 1 Comment » Tags: , , , ,
Posted by Balaji D Loganathan on March 24th, 2010

I came across an interesting discussion happening in Linked In RoR group with the topic RoR compared with other development platforms..
Lets see how this topic got started, the community opinion and finally my opinion. Read more »

pixelstats trackingpixel 2 Comments » Tags: , , , , , , ,
Posted by Alok Swain on March 19th, 2010

Here is a simple tip to handle Record not found exception.
I found many programmers uses code like if User.find(33) then do something. If the id is not present then Active Record throws Record not found Exception which can be caught and handled using begin-rescue. But the simple way is?
Read more »

pixelstats trackingpixel Tags: , ,
Posted by Balaji D Loganathan on March 1st, 2010

We have recently launched the pre-beta version of Dunnitt (http://www.dunnitt.com). Like how Twitter is for micro-blogging, Dunnitt is for micro-collaboration. You can check the screenshots of Dunnitt at http://www.dunnitt.com/one_minute_manual

Thought I would share here some of the simple things we do while we are working on our Sprint release.
Read more »

pixelstats trackingpixel Tags: , , , , , , ,