On Sun, May 11, 2014 at 10:01 AM, Mark Mark <[email protected]> wrote:
> However I have a search page which is just a box which asks the > user to either search the ID if known or company name by entering it in > a form_for helper box. I would start by TDDing a class/method that will take your various expected inputs and tell them apart. Then use the output of that to generate the appropriate 'where' statement to select what you want from the DB (assuming you don't need anything too sophisticated, e.g. fuzzy search, stemming, etc.). After that, easy-peasy, it's just redirects and views. HTH, -- Hassan Schroeder ------------------------ [email protected] http://about.me/hassanschroeder twitter: @hassan -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBiBsR-yFPRs03RUWNGzBgGe6vH69fsBwq6Lorh%3DdDdHw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

