Monthly Archives: October 2010

Overriding to_s method for BigDecimal instance

requirement was to display decimal numbers which are having scale values present to be displayed in decimal format otherwise display them as integer. Output expected 12.23 => 12.23 12.00 => 12 While rendering any object on html page by default … Continue reading

Posted in Ruby | Leave a comment

Uploading multiple files with nginx upload module and upload progress bar

Uploading files ‘efficiently’ has also been a pain point in most apps. I finally got to experiment with: nginx upload module (http://www.grid.net.ru/nginx/upload.en.html) nginx upload progress module http://wiki.nginx.org/NginxHttpUploadProgressModule) and upload multiple files via paperclip. There are resources available for handing these … Continue reading

Posted in Ruby on Rails | Tagged , , | 34 Comments

Twinkle + FF Setup (Click To Call) using telify

On linux machine following settings needs to be done in order to get in browser calling enabledfor phone numbers.Installation setup1. Install twinkle setup (Create user profile) and get it working for outgoing and incoming calls2. Install telify add-on (can be … Continue reading

Posted in Ruby on Rails | Tagged , | 1 Comment

DelayedJOb’s (DJ) fancy methods

Delayed Job provide send_later and send_at as instance methods along-with handle_asynchronously as class method

Posted in Ruby on Rails | Tagged | Leave a comment

Solution to DelayedJob(DJ) gem server start problem

Solution to DelayedJob(DJ) gem server start problem I had installed delayed_job gem 2.0.3, daemons gem but after staring DJ server it shows daemon started but actually process gets killed automatically.I performed steps given by Kevin on google group and it … Continue reading

Posted in Ruby on Rails | Tagged | 15 Comments

Introduction To Delayed Job

Check out this SlideShare Presentation: Introduction To Delayed Jobhttp://static.slidesharecdn.com/swf/ssplayer2.swf?doc=introtodelayedjob-091110110012-phpapp01&stripped_title=introduction-to-delayed-job&userName=jonathanjulian View more presentations from Jonathan Julian.

Posted in Ruby on Rails | Tagged | 1 Comment