Your browser (Internet Explorer 6) is out of date. It has known security flaws and may not display all features of this and other websites. Learn how to update your browser.
Hi
I’m very newbie in rails… looking for some information about user input and search in database i find this post…
I have a question…
where do you put this line?
Ad.find_by_sql [SELECT * FROM ads WHERE MATCH (title,description) AGAINST (’#@lookfor’);]
in a model, right? but Ad is an object and where do you initialize? can you post this source exemple? the view, the model and controller for do the search?
thanks
(sorry for my english)
http://www.ordisante.com/2006/01/05/search-engine-in-rails.html
—————–
1. juray Says:
March 21st, 2006 at 6:04 pm
Hi
I’m very newbie in rails… looking for some information about user input and search in database i find this post…
I have a question…
where do you put this line?
Ad.find_by_sql [SELECT * FROM ads WHERE MATCH (title,description) AGAINST (’#@lookfor’);]
in a model, right? but Ad is an object and where do you initialize? can you post this source exemple? the view, the model and controller for do the search?
thanks
(sorry for my english)
juray
March 24, 2006
Check the post, it has been updated dude.
Lonely Soldier Boy
March 25, 2006