similar to: rspec will_paginate

Displaying 20 results from an estimated 200 matches similar to: "rspec will_paginate"

2007 Aug 21
2
using restful_authentication current_user inside controller specs
I''m using restful_authentication in my app and I have the before filters in my application rhtml: before_filter :login_required around_filter :set_timezone around_filter :catch_errors Currently I have them commented out while rspec''in but I''ll need to add them in my specs. def create @ticket = Ticket.new(params[:ticket]) @ticket.user = current_user if
2007 Aug 17
11
[rspec] looking for a simple refresher
I''ve been off the rspec for a few months and I''m trying to get back on it. 1) Spec::Mocks::MockExpectationError in ''TicketsController handling POST /tickets should create a new ticket'' Mock ''Ticket_1001'' expected :new with ({}) once, but received it 0 times ./spec/controllers/tickets_controller_spec.rb:16: script/spec:4: class
2006 Aug 14
2
ActionPack: number_to_phone error
Question about the number_to_phone function as provided by rails in actionpack: http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html If I do this in my controller: num = number_to_phone(params[:phone_number]) I get this error: undefined method `number_to_phone'' for #<TicketsController:0xb7a2bfcc> Whereas if I do this in my view: <%
2010 Dec 02
0
Thinking Sphinx sorting problem
Hello all, I''m trying to get some records in my application to sort based on a SQL calculated value and am getting no records returned. I have checked and double checked and the query that TS is indexing is working out, but the problem is with the controller. Here is what I''m indexing: ---------------------------------------------------------- indexes
2006 Jun 16
0
Polling pop3 and adding emails to ticket system
Hi guys, Im trying this code below to poll the pop3 mailbox, which i can do as a standalone .rb file which copies the files to inbox/ but now im trying to do the same for the controller to open the emails and add the content to the ticket system. but all i get is error, can somebody enlighten me? class IncomingMail < ActionMailer::Base def receive(email) @ticket = Ticket.new
2006 Apr 24
0
Blank page output :(
Hello all, I''ve been struggling with apache/fastcgi to get SimpleTicket to run with it. At the moment it looks to me as if it''s running. I''m using Mac OS 10.4.5 Apache that comes with OSX client (apache 1). I did a gem update. And installed fastcgi as instructed in: http://wiki.rubyonrails.com/rails/pages/FastCGI+on+OS+X If I open a browser and go to the url of the
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>
2015 May 10
2
[LLVMdev] http://llvm.org/perf/ instability: some clues
Daniel, Tobias, Renato and myself have been looking a little bit at the potential underlying reason for why http://llvm.org/perf/ is instable, and have found some clues. I want to share them here to give people with more experience in the frameworks used by LNT (flask, sqlalchemy, wsgi, .) a chance to check if our reasoning below seems plausible. Daniel noticed the following backtrace in the
2009 Oct 28
2
mislav-will_paginate(will_paginate)
mislav-will_paginate(will_paginate) doesn''t work after search. servers_controller.rb def index @servers = Server.paginate(:page => params[:page], :per_page => 20, :order => ''device_id ASC'') respond_to do |format| format.html # index.html.erb format.xml { render :xml => @servers } end end def search @servers =
2009 Jan 26
0
problem with will_paginate and ajax
Hi guys, I am very sorry to repost in the forum My post problem is http://www.ruby-forum.com/topic/176022 Can anybody please give me a complete tutorial of will_paginate with ajax? I am using rails 2.2.2 and will_paginate updated version. Please help me. Thx in advance. -- Posted via http://www.ruby-forum.com/.
2010 Apr 06
1
error with 'will_paginate' -- need help!
My controller is as follows: class CommunityController < ApplicationController helper :profile def index @title = "Community" @letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("") if params[:id] @initial = params[:id] @pages = Page.paginate :page => params[:page], :order => ''last_name, first_name'' end end
2010 Jan 20
0
Will_paginate not working with the ajax
Hi, I am using "will_paginate" for pagination purpose. I have a partial with name "my_friends", I have a pagination of 25 per page. I have added "<%= will_paginate @user_friend} %>" in my partial. It is working fine. I have a functionality to delete the friend. So I have usd "link_to_remote" call to delete the friend and I am updating that partial with
2010 Oct 30
0
Will_Paginate — Set the Starting record ? IE, Photo 3, of 8
Hello. I''m working very hard to build projects > photo_albums > Photos But am Stuck on being able to implement it. Desired User Flow... #1 - User clicks their project #2 - User sees a list of photo albums #3 - Users clicks a Photo Album #4 - User see a list of photos in the album #5 - User views the clicked photo BUT has will_paginate showing in the nav for all
2008 Feb 12
0
will_paginate with conditions
Hi, I''ve just switched to will_paginate, which is impressive and easy to use! I have a question regarding conditions: I build a query using values from the params that were entered onto a web form using something like :conditions => [" foo like x and bar like y", params[:x]+"%", params[:y]+"%"] It would appear that the conditions need to be respecified
2009 Feb 16
0
will_paginate
Hi there, I am paginating my products using "will_paginate"(12 items per page), and i added this line to my routes file, for make "wil_paginate" work with friendly url''s: map.paginated_product ''products/page/:page'', :controller => ''products'', :action => ''index'', :page => 1 1- First question: when i load
2009 Mar 09
1
will_paginate plugin
hi all, I am using will_paginate plug_in i am getting URL as http://localhost:3000/admin/edit#/admin/edit?page=3 but i want it should be http://localhost:3000/admin/edit?page=3 how can I do it. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2008 Jul 02
0
will_paginate memory leak?
I am using the latest will_paginate gem and noticed that it seems to be leaking memory. I did a simple test of repeated calling a paginate on an activate record and memory usage just keeps growing and not being release. It a simple record - so I don''t think its my code (but still checking). Is anyone aware or come across this? --~--~---------~--~----~------------~-------~--~----~ You
2009 Apr 25
0
ferret, will_paginate and group by
Hi, Is it possible to use "find_with_ferret" and GROUP BY together? Count(*) doesn''t return what will_paginate expects when using GROUP BY, and AFAIK a workaround for that is to manually get total_entries and pass it to Model.paginate. However how does that work with find_with_ferret where I have no idea how to find total_entries? Is it even possible? -- M.
2009 Aug 19
1
will_paginate with ajax
I tried to delete from a datatable that I represent with will_paginate and ajax. In the view there are something like that: <tbody> <% @items.each do |i| %> <tr class="<%= cycle("even","odd") %>"> <td><%= i.name %></td> <td><%= i.quantity %></td> <td><%= i.price
2009 Aug 13
2
ajax with will_paginate problem
i can use <%= link_to_remote("MEMBER LIST",:update => "mcont", :url => {:controller => :users, :action => :list }) %> this for user listing and then it display record i want to do paging on this list file but it is display one page when i click on second page this will no go to second my controller def list #@images = Image.paginate :page =>