RailsCasts Pro episodes are now free!

Learn more or hide this

swagata's Profile

GitHub User: swagata

Comments by


hi ryan
i try this with mongodb mongoid gem but i m unable to found solution for find

@categories = Category.find(:all, :conditions => ['name LIKE ?', "%#{params[:search]}%"])

i replace it by
@search = params[:search]

@tags = Category.where({name:/"#{@search}"/})
buts its unable to search any result

can you help me on same
thanks in advance