Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
"Sortable and Editable Datagrid for Ruby on Rails" is very useful and easy to use.

I developed a nice page by using this sample.
I need help to work something out:

Instead of load whole table with @users=User.all(), I need add a "text_field_tag" like
Ajax to passing a params from view to controller. So I can change @users=User.all() to
term = parama[:name]
 @users=User.all(:conditions => ["name LIKE ?", "#{term}" + "%"])


I intend to use for_remote_tag and text_field_tag. It return the right data but all in one string. Also it can not fit into original grid table as expected.


Thanks
Posted
Updated 22-Apr-11 8:53am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900