Using following code you can easily add wordpress into Ruby on Rails Project. Use my following steps to wordpress XMLRPC api integration with ruby and rails
Tag Archives: ruby
Active Model in Rails
The technique we used was quite a hack as this is something that ActiveRecord wasn’t designed to do but now in Rails 3.0 we have a new feature
Ruby performance improvement of 63% in 1.9.1
Ruby is very powerful object oriented language. new Ruby performance improvement. Working with pure Ruby is really fun and interesting to me. I am real fan of Ruby language.
Rails 3 beta by February
Rails 3 beta by February, Ruby on Rails 3, an upgrade to the popular Web development framework that merges Rails with the alternative Merb framework, is due to be offered as a beta release by the end of this month.
USA State list for Rails
Every time we need this migration script for our projects Use following command for Model generate [siwan@localhost siwan]$ ruby script/generate model UsStates exists app/models/ exists test/unit/ exists test/fixtures/ create app/models/us_states.rb create test/unit/us_states_test.rb create test/fixtures/us_states.yml exists db/migrate create db/migrate/20091117115011_create_us_states.rb [siwan@localhost siwan]$ Open the /db/migrate/20091117115011_create_us_states.rb file and paste following code: class CreateUsStates ‘Alabama’, :abbreviation => ‘AL’ UsStates.create …
Issue with installing the mysql gem: solved, how to install mysql gem without issue
When tried to install mysql gem I got following error [root@localhost siwan]# sudo gem install mysql Building native extensions. This could take a while… ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb checking for mysql_ssl_set()… yes checking for rb_str_set_len()… no checking for rb_thread_start_timer()… yes checking for mysql.h… no checking for …
How to setup mongrel cluster setup on fedora
First install the following gems: #su #gem install mongrel #gem install mongrel_cluster #cd project_name #mongrel_rails cluster::configure -e production -p 3000 -N 3 -c /home/siwan/project_name -a 127.0.0.1 —-prefix /project_name # mongrel_rails cluster::start You are able to start your applicaton at http://127.0.0.1:3000, http://127.0.0.1:3001 and http://127.0.0.1:3002 for all the cluster # mongrel_rails cluster::stop Advanced prepairation for production realeaze …
Continue reading “How to setup mongrel cluster setup on fedora”
how to check programs installation path in linux
There are many linux distributions. Each has different program installation path. Using following commands you can check programs installation path in linux
How to use juggernaut in Rails project
Juggernaut is the Rails plugin for sending and receiving data in different thread. It gives you real time connection to server and you can implement different ideas work or fulfil your requirement. Juggernaut uses the eventmachine as a server. So install the supported gem first. #gem install json #gem install eventmachine #gem install juggernaut Juggernaut …
Create XML document with Ruby on rails
Create XML document with Ruby on rails, In Ruby there is in build XML strong parsing support. In this post, How to create XML file with simple Ruby code.