ajax - Advance Search Form for rails app with multi model criteria -


i have rails app various models , want built advance search form should -

search --- model1 model2 model3 search -- in case of model1 selected search criteria show list of fields m1.f1 m1.f2 m1.f3 in case of model2 selected search criteria show list of fields m2.f1 m2.f2 m2.f3

and text box keywords , search button.

i want know need create model search or controller , view fine. can achieved rails or need use ajax this.

thanks

you don't need model. need controller "host" search action.

it can achieved both rails/ajax, depends on want.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -