On Jul 21, 2014, at 2:15 AM, Jaimin Pandya <li...@ruby-forum.com> wrote:
> I am using Ruby 1.9.3 and Rails 3.2.16. > > What i want to do is When i select date in **search** text field, i > would get date corresponding to that date. First, why are you using like for a date search??? To debug this: - puts the search argument in the search method to make sure it's what you think it should be (and that search is actually called) - look in the log at the SQL the rails is using, take that SQL and fiddle with it at the command line until you have a version that works, and figure out what to do to get RoR to generate similar SQL And in the future, when you post questions, don't withhold information. Tell us what your attempt actually does. Yes, many people could figure out from what you've posted what's wrong and how to fix it, but it's easier if we know whether you're getting an error (and what the error is), or whether it's running but not returning any data, or returning the wrong data. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/81C76263-2DA2-4C4E-858D-BA7C181E7AA5%40elevated-dev.com. For more options, visit https://groups.google.com/d/optout.