rubyonrailsin

A Ruby and Rails talk

Tuesday, March 30, 2010


[Rails] Re: Re: find conditions issue

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

Gianluca Tessarolo wrote:
> Try this:
>
> @product = Product.find(:first, :conditions => ["title like ?",
> "%#{name}%"])
>
> Hope this helps...

Hey thanks this totally worked!!! I really appreciate the help
--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive