[Rails] BackgrounDRb start error

2009-04-22 Thread Adeel Ahmad
Hi, I've got a Rails 2.2.2 app and I'm trying to get BackgrounDRb running. I'm just following the simple example in Advanced Rails Recipes. I installed BackgrounDRb from Git, installed the packet and chronic gems, ran 'rake backgroundrb:setup', generated a worker, and then tried to run 'script/b

[Rails] Re: Rails 2.2.2 - Mysql::Error: MySQL server has gone away

2009-03-02 Thread Adeel Ahmad
This was solved by the fine guys at Engine Yard. I added the following lines to my environmemnt.rb: ActiveRecord::Base.allow_concurrency = true ActiveRecord::Base.verification_timeout = 10 And just before I do a fetch I have this line: Emailpic.verify_active_connections! -- Posted via http://w

[Rails] Rails 2.2.2 - Mysql::Error: MySQL server has gone away

2009-03-02 Thread Adeel Ahmad
My app consists of receiving emails with image attachments from its users so I have been employing the MMS2R gem and Fetcher. Every 60 seconds the app goes to the email server to fetch emails. Under Rails 2.1.1 things worked fine - when I received an email, the email was fetched, parsed and saved

[Rails] Re: scaffold macro problem

2009-02-10 Thread Adeel Shahzad
Frederick Cheung wrote: > On 10 Feb 2009, at 17:04, Adeel Shahzad wrote: >> >> development: >> adapter: mysql >> encoding: utf8 >> database: MovieApp_development >> pool: 5 >> username:root > > the space (or rather lack of space) between

[Rails] scaffold macro problem

2009-02-10 Thread Adeel Shahzad
Hello, I am using Komodo Edit 5.0 for ROR. I have made the database by using the macros in it. But when I make model using sacffold, I get error. The details are given below: C:/Ruby/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 22, col 2: ` password:' (ArgumentError) from C:/Ruby/

[Rails] Fetcher with MMS2R throwing socket error

2009-01-30 Thread adeel
Hi I'm using Fetcher with MMS2R as described in the Peepcode mini- book. After I start Fetcher I get the following error a few seconds later: $ RAILS_ENV=development ruby script/mail_fetcher start Starting MailFetcherDaemon $ /usr/local/lib/ruby/1.8/net/imap.rb:288:in `shutdown': Socket is not c

[Rails] Re: Strange replace_html image error going from 1.2.5 to 2.1.0

2009-01-29 Thread adeel
even under 1.2.5 when it's working so I think this is a red herring. Did something else change in Rails 2 for replacing objects? On Jan 29, 8:56 am, "Thomas R. Koll" wrote: > Hi Adeel, > > On Jan 29, 9:45 am, adeel wrote: > > > Hi I'm tasked with up

[Rails] Strange replace_html image error going from 1.2.5 to 2.1.0

2009-01-29 Thread adeel
Hi I'm tasked with upgrading an old app from 1.2.5 to 2.1.0. There is a basic image rotation triggered by a link_to_remote button. The image gets rotated by Mini-Magick, saved, and then the div is updated on the page to show the rotated image. This works fine in 1.2.5. In 2.1.0 it does not. The

[Rails] URL rewrite to force 'www' and '.html'

2009-01-17 Thread adeel
For SEO, I need to force the URL to contain ‘www’ so my app always appears in the browser as www.example.com and not ‘example.com’. I also need the filename (ex. index.html) to appear completely, and not be hidden. Can someone give us some pointers on how to set this up? I understand the first ca

[Rails] default value using Autocompleter.local

2008-12-11 Thread adeel
I'm using recipe 7 from Rails Recipes to get really fast auto- completion through Javascript. I was previously using text_field_auto_complete which lets me define a :value that appears in the field when the page is loaded - serving as a default value. I'd like to preserve this using the "<%= jav