[Rails] Re: search function implimentaion with the tag name as the search box entry

2008-12-10 Thread Priya Dharsini
@stream = Stream.find(:all, :conditions => ['title LIKE ?', '%'+params[:search_text]+'%']) try with this code -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails

[Rails] Re: Doing Subselect query in Rails... Syntax problem

2008-12-09 Thread Priya Dharsini
@books = Book.find(:all, :joins=>"books inner join authors as a on books.title=a.name", :conditions => ['name LIKE ? ', '%'+params[:author][:name]+'%']) try with the above code Jay Mark wrote: > I have to use subselect for this query. > find_all_by_name and joins will not work. > Please I nee

[Rails] Re: Doing Subselect query in Rails... Syntax problem

2008-12-09 Thread Priya Dharsini
Hi, Actually what's your requirement? If you tell your requirement clearly then the solution can be found. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails