Posts

Showing posts from September, 2010

Rails find_by_sql returns object ??

you can use this, ActiveRecord::Base.connection.select_value("sql query")

Installing pauldix-feedzirra

Hi when i tried to install pauldix-feedzirra, i got the below error. sudo gem install pauldix-feedzirra Building native extensions. This could take a while... ERROR: Error installing pauldix-feedzirra: ERROR: Failed to build gem native extension. /usr/local/bin/ruby extconf.rb checking for libxml/parser.h... yes checking for libxslt/xslt.h... no ----- libxslt is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies. ----- *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/local/bin/ruby --with-zlib-dir --without-zlib-dir...

Problems in Installing Curb in ubuntu

Just install the below lib files, sudo apt-get install libcurl3 libcurl3-gnutls libcurl4-openssl-dev & then, sudo gem install curb It works! -- source - http://axonflux.com/curb-install-problems-on-ubunt

Sending HTML mail in rails

Hi pals, If all the mails that you send are in HTML format. its simple. Specify this line in environment.rb ActionMailer::Base.default_content_type = "text/html" If only one action has to be in HTML mail, specify 'content_type' in that action. content_type "text/html" example, def signup_notification(recipient) recipients recipient.email_address_with_name subject "New account information" from "system@example.com" content_type "text/html" end cheers, Sri