I'm trying to find the not null elements in a database
@genus_counts = Table.count(:all, :conditions=> {:col1 => params[:gm], :col2 => nil}, :without => {:col3 => nil})
It's not recognising "without" function. I am in doubt to apply it as array value.
@genus_counts = Table.count(:all, :conditions=> {:col1 => params[:gm], :col3 != nil :col2 => nil})
It's not recognising "!=" operator.... Kindly suggest me and correct above statement. I am in doubt to apply it as array value.
@genus_counts
is a local variable, I can't apply it as array. Kindly tell me the suggestion to bring this output to view.erb.html
-- With Regards Palani Kannan. K