If you have built an application using scaffold then you can easily
modify
database search criteria. Just modify the first line in the controller
script
Thanks for the tips. bt the case is i need to write the test case for
the functionality in my controller. this controller is written only to
do DB search only. so i need to write a test case codes for it.
def test_public_search_with_data
get :public_search, {}, {:query => “help”}
assert_response 200
end
some what like this . bt the case is this is not working propely. so i
want to know whether the my approach is correct or is their is another
way for this.
Thanks
Nadeesha
Matt Moloney wrote:
If you have built an application using scaffold then you can easily
modify
database search criteria. Just modify the first line in the controller
script