Some time ago I promised to create a small tutorial about live fulltext search. A fulltext search, that gives you results as you type. Ingredients: Ruby on rails ferret gem (gem install ferret) acts_as_ferret gem (gem install acts_as_ferret) auto_complete plugin (from the application root: ruby script/plugin install auto_complete) What we will do Create an empty… Continue reading Live fulltext search in Ruby on Rails
Tag: RoR
Ad-hoc fulltext search in RoR ActiveRecord
I came to a situation where I needed to search my Active record, but I did not know which field contains the information. The solution with Ferret was just three steps away… Let’s say, you want to search Stories for ‘Giant’ keyword. You have to create a Ferret index in memory (ferret gem needs to… Continue reading Ad-hoc fulltext search in RoR ActiveRecord
RoR in enterprise – lessons learned
After a while my first enterprise prototype is finished and I have to summarize what was right and what was wrong during the period of prototyping. Really nice surprise for me was the way of communication. The requirements were formulated more precisely then any requirement before, but not from the beginning. When I did start,… Continue reading RoR in enterprise – lessons learned
RSpec for Ruby on Rails
Behaviour driven development is currently in. The best ay how to get in touch with it is to setup your own environment and make few examples.Nevertheless, if you prefer to start with a bit of theory, go to http://behaviour-driven.org/.This article describes simple procedure to setup Rspec to work together with ruby on rails. Installation of… Continue reading RSpec for Ruby on Rails
Rails upgrade from 1.1.6 to 1.2.3
I have just finished rails and gems upgrade and it was surprisingly smooth. There were just one minor issue. The server was not able to start. It was teling me something like: /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:266:in `load_missing_constant’: uninitialized constant Recconfig (NameError) from /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:452:in `const_missing’ from /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:464:in `const_missing’ from ./script/../config/../config/environment.rb:34 from /opt/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:41:in `run’ from ./script/../config/../config/environment.rb:15 from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require’ from… Continue reading Rails upgrade from 1.1.6 to 1.2.3
Ruby on Rails with Oracle
I am working on a prototype in an big company and they do store data in Oracle. It took me some time to set up RoR working with Oracle. So, here are the things you need to do. First of all, there is a great tutorial on Oracle site: http://www.oracle.com/technology/pub/articles/haefel-oracle-ruby.html. In fact, you need to:… Continue reading Ruby on Rails with Oracle
Ruby on Rails in enterprise
Ruby is great! Ruby is cool! It will penetrate in enterprises within few months. These are some of the ideas that occupies one’s mind during the RoR excitement period. But things are not always so simple. Enterprises does not behave same as small companies do. Their IT complexity reached one of the highest level and… Continue reading Ruby on Rails in enterprise