Archive for the ‘Ruby on Rails’ Category
Posted by Balaji D Loganathan on March 16th, 2012

On 2nd March 2012 we conducted a half-day training on “Building cross-platform Mobile applications using RhoMobile platform at Singapore.
Here are some of pictures taken from the events.
(more…)

Tags: , , , , , ,
Posted in Ruby on Rails, Software | No Comments »
Posted by Vinothini B on February 13th, 2012

While using Rhomobile, often you might want to create an app that would have scrollable content with fixed header and footer, horizontally scrollable content, vertically scrollable content, scrollable content with a specific div and so on. Here is a sample app that got all this integrated together for you. (more…)

Tags: , , , , ,
Posted in Ruby on Rails, Software | No Comments »
Posted by Balaji D Loganathan on November 11th, 2011
brew install mysql

Is you have installed mysql server already and have a failed mysql gem, then remove the mysql server first [ see]

Do this to install mysql system tables:

mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp

Install mysql gem:

sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-dir=/usr/local/Cellar/mysql --with-mysql-lib=/usr/local/Cellar/mysql/5.5.15/lib/ --with-mysql-include=/usr/local/mysql/5.5.15/include  --with-mysql-config=/usr/local/Cellar/mysql/5.5.15/bin/mysql_config

To find out what your machine is. use uname -a

Tags: , , , ,
Posted in Ruby on Rails | 1 Comment »
Posted by Balaji D Loganathan on October 3rd, 2011

Often we want to avoid installing rdoc and ri on production/staging servers.
Simply create .gemrc file in your home directory and add gem: –no-ri –no-rdoc
(more…)

Tags: , , ,
Posted in Ruby on Rails, Software | No Comments »
Posted by Surendran Sukumaran on September 28th, 2011

Recently, we had a task of consuming a SOAP based web serivces which sends and receive complex objects.
(more…)

Tags: , , , , , , ,
Posted in Ruby on Rails, Software | No Comments »
Posted by Surendran Sukumaran on September 15th, 2011

RVM made my life easier to run multiple versions of ruby and rails in Ubuntu/Mac OS.
If we want to maintain multiple versions of gem under a single ruby version, we can create a named gemsets for different versions and switch between them easily.

What is the advantage?
Answer: You can maintain multiple versions of Ruby as well as Rails (or gems). Cool. Isn’t it?

(more…)

Tags: , , , , , ,
Posted in Ruby on Rails, Software | No Comments »
Posted by Dhepthi L Narasimhan on August 2nd, 2011

Selenium is a suite of tools to automate web browsers across many platforms. It runs in many browsers and operating systems and it can be controlled by many programming languages and testing frameworks. I have used Selenium 1 (Selenium RC) as an Integration tool to test my rails application.

The installation steps to connect Selenium server with selenium client via ruby language as follows (more…)

Tags: , , ,
Posted in Ruby on Rails, Selenium | No Comments »
Posted by Neelkanth Ram on July 25th, 2011

As per design, Method overloading is not supported in Ruby.
If you try the below example, you will get “`foobar’: wrong number of arguments (1 for 2) (ArgumentError)“.
(more…)

Tags: , ,
Posted in Ruby on Rails, Software | No Comments »
Posted by Dhepthi L Narasimhan on March 1st, 2011

Using Highcharts library in application provides best way of manipulating data in terms of various charts. In my rails application, I am using highcharts 2.1.2.
While upgrading my highcharts to version 2.1.2, I faced an error stating “Stack undefined error” when chart has no data to display. Please see the error screenshot as shown below. (more…)

Tags: ,
Posted in Ruby on Rails, Software | No Comments »