Posts Tagged ‘Ruby’
Posted by Balaji D Loganathan on September 8th, 2010

If you are facing the below error while installing Rails3 on Windows or Linux

C:\Users\username>gem install rails --pre
Successfully installed rails-3.0.0.rc2
1 gem installed
Installing ri documentation for rails-3.0.0.rc2...
File not found: lib

then simply create the “lib” directory at \lib\ruby\gems\1.8\gems\rails-3.0.0.rc2\ folder.
Thats it. It should work. Thanks to Stefan

Tags: ,
Posted in Software | No Comments »
Posted by Alok Swain on August 3rd, 2010

In the recent railscasts, Ryan Bates has shown us the usage of Highcharts and some other open-source client-side JavaScript libraries to generate beautiful charts with no load on the server. A beautiful alternative solution to Gruff, Flash chart and other plugins and gems that depend on Rmagick or Flash and are generated on the server. Also associating events with the charts is also easy. Some of the other features provided by Highcharts are explored here.
If you want to see the demo directly, please click http://hollow-day-51.heroku.com/ (more…)

Tags: , , , ,
Posted in Software | No Comments »
Posted by Neelkanth Ram on June 22nd, 2010

If you are using MinGW version of Ruby and trying to install plugins like jrails or paperclip, then you might face with the problem “Plugin not found” even after correctly following the instruction.

Here is the solution for it.
(more…)

Tags: , ,
Posted in Software | No Comments »
Posted by Balaji D Loganathan on June 12th, 2010

If you are one of the victim who got the below error on your Windows machine…

Building native extensions.  This could take a while...
ERROR:  Error installing rcov:
        ERROR: Failed to build gem native extension.

F:/--ruby install path--/Ruby/bin/ruby.exe extconf.rb
creating Makefile

nmake
'nmake' is not recognized as an internal or external command,
operable program or batch file.

Gem files will remain installed in F:/--ruby install path--/Ruby/lib/ruby/gems/1.8/ge
ms/rcov-0.9.8 for inspection.
Results logged to F:/--ruby install path--/Ruby/lib/ruby/gems/1.8/gems/rcov-0.9.8/ext
/rcovrt/gem_make.out

the I have a suggestion.
(more…)

Tags: , , ,
Posted in Software | No Comments »
Posted by Surendran Sukumaran on May 6th, 2010

I was exploring the way to integrate GoogleMap on Flex with Rails as backend. My main focus was to detect the user events happening on Google Map using Flex, and then display the data sent by Rails to Flex. So, lets see what i did.

If you want to quickly know see the demo of my work, please click http://gmap-flex-rails.heroku.com/
(more…)

Tags: , , , , ,
Posted in Software | No Comments »
Posted by Balaji D Loganathan on May 4th, 2010

Book Name: Flex on Rails: Building Rich Internet Applications with Adobe Flex 3 and Rails 2 (Developer’s Library)
Authors: By Tony Hillerson, Daniel Wanja
Link: Amazon link
Table of contents: See Sample Content
Published on: 2009

If you know Rails and Flex, and if you are desperately looking for a book that can guide you to Integrate Flex and Rails, then this is the book to buy. (more…)

Tags: , , , , , , , , , ,
Posted in Review, Software | No Comments »
Posted by Surendran Sukumaran on April 28th, 2010

If you want to know how to send and receive data from Flex and Rails using XML or JSON or AMF data types, then please read further.

Firstly, to get a bite at of what i am talking about, please check the demo.

Now let see this from coding perspective.

Tags: , , , , , , , ,
Posted in Software | 1 Comment »
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).
(more…)

Tags: , ,
Posted in Software | No Comments »
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.
(more…)

Tags: , , , , ,
Posted in Software | No Comments »
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.
(more…)

Tags:
Posted in Software | No Comments »