Simplify MySQL Fulltext requests
Ruby JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
Gemfile
Gemfile.lock
MIT-LICENSE
README.rdoc
Rakefile
mysql_simple_fulltext.gemspec

README.rdoc

Mysql Simple Fulltext

MysqlSimpleFulltext lets you make simple MySQL fulltext searches a simple way without writing SQL queries in your ActiveRecord.

Getting started

gem install mysql_simple_fulltext

In your Gemfile

gem "mysql_simple_fulltext"

In your model

Setup your fulltext search

class Post < ActiveRecord::Base
  search_with_simple_fulltext [:title, :content]
end

Generate your migration file

rails generate mysql_symple_fulltext:migration Post

rake db:migrate

Search !

Post.fulltext_search("Lorem Ipsum")