Query depending on between two values

hey, i am new in ruby…i have two textbox…where i will give
two dates.i will fire query for retriving data between two dates
given textboxes…pleaes give me any simple code.how will i proceed?
controller code:
@result = params[:text]
@result1 = params[:text1]
@infos=Info.find(:all,:conditions =>
but it will not worked?
please help with code…

here’s one way:

@infos = Info.find(:all, :conditions => [“my_date between ? and ?”,
params[:date1], params[:date2]])

On Mar 14, 1:30 pm, Subhadip Chakraborty <rails-mailing-l…@andreas-

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs