Displaying 20 results from an estimated 142 matches for "jlaine".
Did you mean:
laine
2007 Dec 03
5
spec for model_id should eql
Hello,
I''m confused why the spec described below is failing. Other simple
comparison specs are passing fine for the same model. The code is working
accordingly when I test it through the console, I''m just having difficulty
getting this spec to work. Any pointers would be appreciated.
Failure message:
''Address fetch and geocode should extract department and write to
2006 Jan 15
4
file_field vs. file_field_tag
Hi,
The documentation doesn''t make it clear why both file_field and
file_field_tag are both useful. What is the reason for having two
instead of just one of these?
Thanks,
Peter
2007 Dec 04
12
params not available for controller specs?
Hi, all,
I''m trying to write a spec for a controller method that starts out:
def download
@orders = Order.find( params[:ids] )
...
and started writing a spec that set params[:ids] to a mock. I was surprised to discover that controller specs (at least in RSpec 1.0.8) don''t offer the use of the params object (per
2007 Sep 13
2
Failing to raise an exception in a stub
...ments is really
happening because save! certainly shouldn''t assume any args.
Moreover, both cases work fine in the real app, so it seems to me
something funky is happening when stubbing the method.
Anyone else stumbled upon anything similar?
Cheers,
//jarkko
--
Jarkko Laine
http://jlaine.net
http://dotherightthing.com
http://www.railsecommerce.com
http://odesign.fi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2417 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/rspec-users/atta...
2007 Nov 13
2
Spec slowdown
...needed to run the specs of my app jumped from ~20 seconds to more
than a minute. The weird thing is that if I run the rake spec tasks
separately (controllers, models, views, helpers), they still take
about 20 seconds in total: http://pastie.caboo.se/117362
//jarkko
--
Jarkko Laine
http://jlaine.net
http://dotherightthing.com
http://www.railsecommerce.com
http://odesign.fi
2006 Jan 09
3
rails ignoring the migration file
I have a mysql database that I am trying to use migrations on. The
problem that I am having is that when I create a blob field in my
migration file like so:
t.column "data", :binary, :limit => 15.megabytes, :null => false
rails changes it to this in the schema:
t.column "data", :binary, :default => "", :null => false
not only is this not what I wanted
2005 Apr 20
7
find_all_by and :order
I think I must be missing something obvious...
I have...
class OrderController < ApplicationController
model :order
scaffold :order
def list
@orders = Order.find_all_by_status(@params[:status], :order => "date" )
end
end
class Order < ActiveRecord::Base
belongs_to :customer
end
and i''m getting...
/Unknown column ''orderdate'' in
2005 Mar 21
3
routes.rb question.
I have a simple program that read all HTML files from a directory and
returns parts of the content and the file names which are HREFs to
those file.
I build the HREF string dynamicaly as PATH_TO_DOC_ROOT + "file_name".
My PATH_TO_DOC_ROOT = http://127.0.0.1:3000/docman/public/docs. So,
the final link that I am interested in might look like this:
2005 Apr 25
1
Problems when using sweepers with postbacks
...don''t know, maybe there already exists a solution for this. However,
all that I can tell at the moment is that when posting a postback form,
the sweeper is not called.
//jarkko
[1]
http://rails.rubyonrails.com/classes/ActionController/Caching/
Sweeping.html
--
Jarkko Laine
http://jlaine.net
http://odesign.fi
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
2005 Dec 21
8
text_area
Hi I''d like to know how to add default text text area using the function
text_area. I ''ve tried using value = "....." to do this but with no
luck.
Could some one please answer my simple question?
Thanks.
Dan.
--
Posted via http://www.ruby-forum.com/.
2008 May 03
6
Everyone Using Rspec Autotest?
I haven''t been spec''ing lately, but been hopping back on and adding
autotest.
However I get an error:
http://pastie.caboo.se/177538/wrap
I also noticed a post by Scott and there was mention of rspec_autotest.
Is this is what everyone is using?
http://svn.caldersphere.net/svn/main/plugins/rspec_autotest/
2005 Mar 10
6
Expiring Cache Fragments and fcgi
First let me say that Rails caching is very very cool. The traffic
(and responsiveness) I''ve saved by added 10 lines of ruby code would
be enourmous, if I actually had traffic... ;)
Sweepers as observers are great, btw. Since every page of my side is
dynamic, once I did some DB optimization I''m caching the content of
the index page which was taking the bulk of the time to load
2007 Feb 08
7
Informal benchmarks - apache, mongrel, etc
I see that Brian McCallister did some benchmarks recently, showing
Apache, Mongrel, Jetty and TwisteWeb:
http://kasparov.skife.org/blog/src/ruby/silly-micro-benchmarks.html
Regards,
Dan
This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received
2006 Jan 03
7
link_to an external url ?
Simple question. Is it possible to generate a link like
<a href="http://www.google.com" target="_blank" >google</a>
with the link_to function ?
Thanks
2005 Oct 11
5
show message while loading - ajax
Hello,
Could anybody please tell me how I would show a message or an image while
the ajax request gets processed?
thank you in advance for your help.
this is what I came up with but it doesn''t really work:
function getHTML() {
var url = "./scripts/rfiles.php";
var par = "";
var myAjax = new Ajax.Updater("fm-viewdetails", url, {method:
2005 Mar 10
4
error messages, loops and saves, actionmailer and finaly authentication
Thanks to everyone who responded to my first set of questions. Not only did I
get my questions answered but I improved my code and learned a couple new
things.
I think I prefer the mailing list over IRC... easier to follow :-)
I have some more questions if you don''t mind. Some are Rails related and some
are Ruby related.
1) This is concerning displaying error messages. I am assuming
2006 Dec 20
2
OSX Dashboard Widget for managing mongrels...
Hey everyone -
I recently switched to using a Mac and have several different rails
projects going and was getting tired of starting/stopping mongrels via the
shell so wrote my first dashboard widget to do it for me.
More details at the URL below...
http://blog.pjkh.com/2006/12/20/mongrel-rails-dashboard-widget
Hope those of you on OSX find it handy... feels good to finally give
something
2006 Jan 11
2
How to execute an SQL statement in rails?
Hello,
This is probably a silly question but looking at
"api.rubyonrails.org", I can''t seem to figure out which method I
should be using ... I want to execute an sql statement, like "truncate
table BLAH" from within one of my rails app ... What''s the "right" way
to do this?
Thanks,
/B
--
Bruno Mattarollo <bruno.mattarollo@gmail.com>
2006 Aug 25
9
Multi apps in one Mongrel instance
Hi,
It would be nice if Mongrel would do multiapps in one Mongrel instance.
For the moment, I have one Mongrel for each app of my server, each on a
different port.
For example:
http://server:8080/app1
http://server:8080/app2
instead of:
http://server:8080/
http://server:8081/
Is that planned?
Thanks.
-jec
--
JeSC - Software et Consulting
Jean-Eric Cuendet
Ing?nieur HES en
2006 Jan 14
7
Rails on Resin
Anyone figured out how to get rails/fastcgi to run on Resin.
I assume it would be similar to PHP, which there are directions here:
http://www.caucho.com/resin-3.0/thirdparty/php.xtp
One thing that confuses me is that it wants a server address:
<server-address>localhost:8002</server-address>
Apparently you start the php process, like this:
php -b 8002
And then the PHP process