Few days back when i tred to run my rails project. I got an error saying ActiveRecord-JDBC is for use with JRuby only jdbc-mysql is only for use with JRuby /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:76:in `establish_connection’: Please install the jdbcmysql adapter: `gem install activerecord-jdbcmysql-adapter` … Continue reading
Category Archives: Ruby on Rails
Fixed this issue: Building native extensions. This could take a while…
I got this error when i tried to install various ruby gems on system. I am using the Fedoa 9 as OS. I tried a lot to fix this issue and googled lot but not found exactly solution. later on … Continue reading
Compress the server response with Nginx
Maybe you aware with apache “mod_gzip and mod deflate”
Web page compression is not a new technology, but it has recently gained higher recognition in the minds of IT administrators and managers because of the rapid ROI it generates. Compression extensions exist for most of the major Web server platforms
For Apache Normally use following syntax:
………………….. Continue reading
Nginx Rule for Rails Application
Use following code for setting up Nginx for rails.
Install Apatana Studio on Fedora 9
Installation of Apatana in Detail 1. Download zip file from this location(http://www.aptana.com/studio/download) File name:Aptana_Studio_Setup_Linux_1.2.7.zip 2. Then uncompress the .zip file. and copy the resulting ‘aptana’ folder under ‘/home/siwan’.(siwan is my username for fedora, you have replace your username) 3. Install … Continue reading
Memcached Server with Rails
To install memcached server on linux/fedora box yum install memcached Find help for memcached commands and option memcached -help Start memcached server(11211 is default port Number for memcached server) memcached -m 500 -l 192.168.2.4 -p 11211 -vv (192.168.2.4 this is … Continue reading
deconstructing date_select in rails
// Reconstruct a date object from date_select helper form params // place this code into your application.rb file def build_date_from_params(field_name, params) Date.new(params["#{field_name.to_s}(1i)"].to_i, params["#{field_name.to_s}(2i)"].to_i, params["#{field_name.to_s}(3i)"].to_i) end //You can changes order of displaying into view <%= date_select ‘from’, ‘date’ ,:order => [:day, … Continue reading
Creating a Windows service
For this I used Daniel Berger’s win32-service package. This is a great package that does literally everything for you to enable you to create a nice Windows service. Just install the gem like this: gem install win32-service I used examples/daemon_test.rb … Continue reading
Cake: Ruby on Rails Inspired PHP Framework
a Ruby on Rails inspired PHP rapid development framework. Can anyone comment on how this compares thus far?