Displaying 5 results from an estimated 5 matches for "filter_by".
2007 Jun 14
1
rspec will_paginate
Hi Rspec-Users,
I''m not sure if I am correctly specing my index since I''m using
will_paginate.
params[:filter_by] will filter the paginate list accordingly.
Tickets Controller:
def index
  @tickets = Ticket.filter_status_by(params[:filter_by],params[:page])
end
Ticket Model:
def self.filter_status_by(status, page, per_page = 10)
  conditions = {:status => false} if status == "unsolved"
  cond...
2009 Apr 12
3
Multi-button form
It cannot be this difficult, especially in rails.  Here is my form code
in a partial for the index action of a controller:
  <% form_tag({:controller => controller_name, :action => ''index''},
{:method => :get, :class => ''form''}) do %>
    <div class="columns">
      <div class="column left">
        <p>
   
2010 Dec 02
0
Thinking Sphinx sorting problem
...come to qualify (MIQ) minus Total
Household Income (THI)  MIQ - THI and this is what is indexed.
In my controller, I have a search action:
----------------------------------------------------------
  def search
    @searched = params[:search]
    @sort = params[:sort_by].to_i
    @filter = params[:filter_by].to_i
    application_ids = Application.search_for_ids(@searched,
      :select => "id, applicant_id",
      :group_by => ''applicant_id'', :group_function => :attr,
      :with => Application.filter_for_search(@filter, @season),
      :sort_mode => :extend...
2015 May 10
2
[LLVMdev] http://llvm.org/perf/ instability: some clues
...7/site-packages/LNT-0.4.1dev-py2.7.egg/lnt/serve
r/config.py", line 148, in get_database
    return lnt.server.db.v4db.V4DB(db_entry.path, self, echo=echo)
  File
"/opt/venv/perf/lib/python2.7/site-packages/LNT-0.4.1dev-py2.7.egg/lnt/serve
r/db/v4db.py", line 108, in __init__
    .filter_by(id = lnt.testing.PASS).first()
  File
"/opt/venv/perf/lib/python2.7/site-packages/SQLAlchemy-0.9.6-py2.7.egg/sqlal
chemy/orm/query.py", line 2334, in first
    ret = list(self[0:1])
  File
"/opt/venv/perf/lib/python2.7/site-packages/SQLAlchemy-0.9.6-py2.7.egg/sqlal
chemy/orm/query...
2013 Feb 07
2
The use of R Commander for beginning students and newbies
Everyone:
 
In the last few months I've noticed an increasing number of questions to
this list from students who are new to the use of R and who have limited (in
any) local support on R and specifically support for R syntax.
 
My text
(http://www.springer.com/statistics/social+sciences+%26+law/book/978-1-4614-
2133-7) from last year was specific to the use of R syntax but given recent