[Rails] Imap not returning emails while scaning inbox

2012-11-27 Thread Lucky Nl
Hi, am using Imap I have an emails in my account I have scanned emails around 11 am IST but am not scanned emails.If i put scan_since with previous day like 24.hours.ago then am not get results I have started scan emails again in the afternoon around 3pmISt.Now am able to scan emails with 6 hour

[Rails] How to configure morethan one solr cores in sunspot.yml in same environment

2012-04-20 Thread Lucky Nl
Hi am using rails 2.x and outoftime-sunspot gems I want to use morethan one solr cores and using sunspot in my application How to configure morethan one cores in sunspot.yml let's assume Model1 using core1 Model2 using core2 How to configure them in my application -- Posted via http://www.ruby-

[Rails] How to write functional testcases for solr

2012-02-17 Thread Lucky Nl
Hi, Am using 'solr_ruby' gem in my rails application for solr search. But i want to write functional testcases for solr search withouth starting solr externally like as for running application in developmentmode. Is there is anyway to create solr connection and start in testfile only. It's very ur

[Rails] mysqlerror for mongodb documents in testenvironment

2012-01-25 Thread Lucky Nl
Hi friends, Am using mysql and mongodb in my application. I have create mongodb models for 2 tables books and books_history after created these , am running test cases for previously written controllers which are not using mongodb tables then am getting this error ---

[Rails] NoMethodError (undefined method `serializable_record' for #

2011-05-19 Thread Lucky Nl
Hi , Am using rails 3 .I have added code in my controller --- la.map{|c| ActiveRecord::Base::Serializer.new(c).serializable_record --- But am getting below error