Feeds:
Posts
Comments

Posts Tagged ‘bug fixes’

Just increase the maximum heap size of the compiler(Setting->Compiler->Java Compiler) That should solve it.

Read Full Post »

Here, you need to consider 2 things. CSV’s auto line ending detection may be failing for some reason.  A likely cause could be fields that contain line endings different from those used to end lines. You should be able to solve this by setting the :row_sep manually. CSV.open(…, :row_sep => “\r\n”) If that doesn’t work, [...]

Read Full Post »

Ruby 1.9 has adopted FasterCSV as its built-in CSV library. However, it’s in the standard library rather than Ruby 1.9′s core, so you need to manually require it in the application. After adding a require ‘csv’ to your code, you can then do things such as CSV.parse(“this,is,my,data”) require ‘csv’ CSV.parse(“this,is,my,data”)

Read Full Post »

If you see the beow issue; Please switch to Ruby 1.9′s standard CSV library.  It’s FasterCSV plus support for Ruby 1.9′s m17n encoding engine. Remove fasterCSV from your Gemfile in the application. Bundler is trying to require FasterCSV because you have it specified in the Gemfile.

Read Full Post »

If you are using select (or similar helpers such as collection_select, select_tag) to set a belongs_to association you must pass the name of the foreign key (in the example below blog_id), not the name of association itself. If you specify blog instead of blog_id Active Record will raise an error along the lines of ActiveRecord::AssociationTypeMismatch: [...]

Read Full Post »

Try; f.select not f.select_tag That should work.

Read Full Post »

Got this issue. No worries. Open up environment.rb and Add; config.gem ‘twitter-auth’, :lib => ‘twitter_auth’ That should fix ur issue

Read Full Post »

Faced this isuue after upgrading to Rails-2. Removing “encoding: utf8″ from database.yml fixed the problem. Don’t know the exact reason. May be included with the rails core?. Suggestions welcome.

Read Full Post »

The –prefic option in mongrel configuration causes this error. Go to RAILS_APP/config/mogrel_cluster.yml and remove the “prefix” option If you are having problem in starting the server, without “–prefix” option.  Pls refer the workaroung suggested. (http://www.nabble.com/Problem-when-migrating-from-rails-2.2.2-to-rails-2.3.2-on-linux–SLES10-%2B-apache-2-td22961256.html) Copy this file in my_rails_app/config/initializers : abstract_request.rb module ActionController class AbstractRequest < ActionController::Request def self.relative_url_root=(path) ActionController::Base.relative_url_root=(path) end def self.relative_url_root ActionController::Base.relative_url_root [...]

Read Full Post »

If you face an error like this; /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:269:in `require_frameworks’: no such file to load — openssl (RuntimeError) from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:134:in `process’ Follow these steps: 1. yum install openssl 2. yum install openssl-devel 3. cd /ruby_install_dir/ext/openssl 4. ruby extconf.rb 5. make 6. make install

Read Full Post »

Older Posts »