Displaying 20 results from an estimated 100 matches similar to: "Problems with view spec and mocking will_paginate"
2008 Sep 18
2
Ruby on Rails Resource required - New Jersey - 6 Months +
// Please reply this email to jai-Oc46A42Di8jtC6uA/Zb986xOck334EZe@public.gmane.org //
Hi,
My name is Jai, I am a Technical Recruiter with International Business
Solutions. Ltd, NJ. My client in NJ is looking for a JD Edwards Technical
Consultant. I have included a description of the project below. Please take
a few moments to review, and let me know if this is something you might be
interested
2007 Aug 06
5
Problems with array mock
Hi everyone,
I''m trying this in my helper spec and it didn''t work:
@curr_odontogram.should_receive(''photos[1]'').and_return(@photo)
and the error is:
SyntaxError in ''PersonHelper Deberia devolverme un link para eliminar una foto''
compile error
/home/gramos/src/rails/r-dental/config/../vendor/plugins/rspec/lib/spec/mocks/proxy.rb:99:
syntax
2008 Jun 10
1
Refactoring''s code needs refactoring''s specs?
Hi guys, I have one question:
When refactoring the working code I need or should refactoring the specs too?
My old code is:
http://pastie.org/private/gpskgtavm4yzutanq1ro3w
My new refactored code:
http://pastie.org/private/2emgi1hr5iga3m9jib4q
and the specs that are still passing without refactoring:
http://pastie.org/private/qn3uaoin0k2n8vjsusssg
Regards.
--
"Most of you are
2007 Dec 29
15
Do you think it would look cleaner?
I was looking over some of my specs.
I was thinking that the following:
@game.should_receive(:name).and_return(''The Battle for Blaze'')
@game.should_receive(:people).and_return(5000000)
@game.should_receive(:activated).and_return(true)
Would it look cleaner if I could do this instead?
@game.should_recieve_and_return(
:name => ''The Battle for Blaze''
2015 Dec 08
2
Tiempo de vida
Pero como haría el data frame?? Porque las cuchillas son de la misma referencia. En realidad es para ver cada cuanto se gstan las cuchillas y ver que pedidos hay que hacer de las mismas.
La tabla que tengo es:
25 enero-> 1 cuchilla gastada
30 enero -> 1 cuchilla gastada
3 de febrero -> 2 cuchillas gastadas
5 de febrero -> 1 cuchilla gastada
Y así....
No tiene necesariamente que ser
2015 Dec 07
2
Tiempo de vida
Los datos no son de desgaste de cuchilla, sino de consumo de las mismas.
Por ello tengo los datos de la siguiente forma:
Unidades cambiadas Fecha
En unidades cambiadas, suele ser una y en fecha el dia que se hizo el cmabio.
Con eso no se muy bien como estructurar los datos para hacer el análisis.
Gracias
Jesús
> Date: Mon, 7 Dec 2015 16:27:18 +0100
> From: griera en yandex.com
2015 Dec 10
2
Tiempo de vida
Hola Jesús,
La respuesta, desde mi punto de vista, es un poco off-topic de lo que se
trata en esta lista, pero comento como lo veo yo.
Con el nivel de detalle que tienes, puedes hacer varias cosas:
- Simplemente mantén en tu almacén un número de cuchillas mayor que la
última vez que tuviste que pedirlas con urgencia. En los entornos de
Producción, efectivamente el que rompas el stock
2015 Dec 10
3
Tiempo de vida
Se ha borrado un adjunto en formato HTML...
URL: <https://stat.ethz.ch/pipermail/r-help-es/attachments/20151210/04bc012e/attachment-0001.html>
2015 Dec 10
3
Tiempo de vida
Buenas
He creado los histogramas, y los he guardado en función de la referneica en una variable:
histograma<-tapply(datos$consumo,datos$Material,function(x)hist(x,col=8)
Pero ahora la variable histograma como array, donde estan las 300 referencias.
Si entor en una, por ejemplo, histograma[1], veo como es un tipo list con los siguientes campos:
$breaks
[1] 0.0 0.2 0.4 0.6 0.8 1.0
$counts
2015 Dec 10
2
Tiempo de vida
La referencia de las cuchillas, no son todas la misma
Date: Thu, 10 Dec 2015 22:04:24 +0100
Subject: Re: [R-es] Tiempo de vida
From: cof en qualityexcellence.es
To: j.para.fernandez en hotmail.com
CC: r-help-es en r-project.org
Gracias.
¿Y qué es "Referencia"?...
Gracias,
Carlos Ortega
www.qualityexcellence.es
El 10 de diciembre de 2015, 21:48, Jesús Para Fernández
2015 Dec 07
3
Tiempo de vida
Buenas,
Como pudeo calcular el tiempo de vida? Os cuento, tengo una serie de cuchillas y quiero ver el consumo de las mismas y he pensado en hacer un estudio por tiempo de vida. No se como hacerlo con R
Gracias
Jesús
[[alternative HTML version deleted]]
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 =
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
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: