rubyonrailsin

A Ruby and Rails talk

Monday, March 15, 2010


[Rails] find_by

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

hi,
I have to retrieve data from table with two conditions using a actully
the following query

select * from abc where id=1 and type = 'a'

how will i do if:

find_by_id(id) >>>>> how will i use for multiple conditions

--
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