@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
@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
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
3 matches
Mail list logo