Posts Tagged ‘Ruby/RoR’

no such file to load — dispatcher

I updated to Rails 3 and tried to deploy the application using passenger in combination with Apache2. I’ve got the following error: no such file to load — dispatcher The thing was, that Passenger treats the Rails 3 application as an Rack application because of the config.ru file. To get it run again, you need [...]

Running rake tasks in different environments

To run Rake tasks with Ruby on Rails in different environments, you just provide the necessary variable when starting the task: $ RAILS_ENV=staging rake db:migrate In this case we are starting the migration tasks in an environment called staging. You can of course also provide the standard environments like development, test or production.

Synchronizing Core Data With Rails

Synchronizing Core Data With Rails View more presentations from Ken Collins.

no such file to load — mkmf

I got the following error when i wanted to install passenger via gem install passenger on my ubuntu machine: no such file to load — mkmf To fix this i had to install the ruby modules via sudo apt-get install ruby1.8-dev

Apache Lucene and Ruby

Robert Dempsey has written a nice article about ‘Using Amazon S3, EC2, SQS, Lucene, and Ruby for Web Spidering‘, which is very interesting because it describes how to interact with Apache Lucene using Ruby.