search for: search_params

Displaying 3 results from an estimated 3 matches for "search_params".

Did you mean: search_param
2006 Apr 27
12
how to do a count with a variable...
hi guys, got this problem... in my controller, when i wanna do a @temp.count it fails... then i went to try counter = @temp.count which also failed.. thus, i feel that the count is not available for ActiveRecord::Base..so i went to the Model class eg. user.rb so in user.rb : ... def count_uesr count = 0 self.each do |record| count ++ end return count end then it ended up having
2006 Aug 01
1
Getting nil when you want "" (a blank string)
This has got to be something obvious that I am missing... I have a remote form that has one value that is passed back to the server from a text field. The form has a set of parameters passed to the :url key called search_params. When the field is empty and the form is submitted, I get :my_val => "" as expected when I examine the log. All is well with the world. I need call that same action from a link_to_remote, in this case forcing my_val to be empty (""). To do this, I do search_params.merge...
2012 Oct 05
1
Puppet Dashboard inventory search problems.
...m, and Puppet 2.7.19 When I do an inventory search, I get a blank screen. In the logs, I found the following: Processing NodesController#search (for X.X.X.X at 2012-10-05 08:44:57) [GET] Parameters: {"action"=>"search", "controller"=>"nodes", "search_params"=>[{"fact"=>"OSFamily", "comparator"=>"eq", "value"=>"Debian"}]} Errno::EIO (Input/output error): /usr/lib/ruby/1.8/net/http.rb:564:in `write'' /usr/lib/ruby/1.8/net/http.rb:564:in `warn'' /usr/lib/r...