search for: stewbawka

Displaying 9 results from an estimated 9 matches for "stewbawka".

2006 Sep 08
1
testing question
ok, i''ve written a couple of unit tests and it was pretty straight forward as far as what i should and shouldn''t be testing in the unit test.. until now. i am testing a customer model right now.. i figure that a unit test should test the functions of a model as well as if you can do all the crud stuff and validations. right now i wish to test a customer model function that
2006 Sep 29
1
building a pdf with an existing pdf as watermark/background
I''m starting on a small rails app and i need to generate a report in pdf format. i''ve generated pdfs before using pdf::writer without much problems, but for this project the company sent me a pdf ''watermark'' (or background template) that they want the report to be printed on.. instead of having them stock a bunch of the template stationary and have that paper
2007 Apr 05
4
backgrounddrb problem..
i''m having some problems getting a simple example going with backgrounDRB. after i set my worker to work i try to get back the result like this: w = MiddleMan.worker(key) w.items comes back as DRb::DRbUnknown (i have items as attr_reader in my worker and access it inside there with @items). the result is actually activerecord results in an array. when i change it so my worker puts
2006 Nov 02
5
RJS error in internet explorer
hey all, got a rails app i''m finishing up. i have a little ajax on one of my pages where the person can choose a doctor from a drop down list and if the doctor isn''t there they can click a link which blinds down a little form to add a doctor. after they submit that mini-form the page updates the div which houses the drop-down so the doctor shows up. works very nicely IN FIREFOX.
2007 Feb 06
0
yajb - java-ruby bridge
i was using rjb until some of the java libraries i was using started misbehaving. now i''m giving yajb a shot which seems to behave the way i expect it to and is a lot simpler to code. my problem: i have a class that takes a constant, which is a member of the class, so i have to do something like this to make it work: const_accessor = jnew :SearchCriteria, "dfdfa",
2009 May 06
1
accessing database model from generator?
i''m writing my own generator :) basically a custom scaffolding type thing to make my life easier when creating new resources. instead of doing something like script/generate custom_scaffold MyResource name:string description:string ... i decided to store all the metadata about the tables and fields in the db. my generator creates the model stub files when given a name that corresponds
2010 Jun 25
0
activerecord + ms sql.. rowguid field for merge replication breaking inserts
i got my app running with ms sql server as the database and everything worked fine. migrations, indexes, constraints, find, create, update, etc.. the app isn''t actually a web app, butwill be running isolated on severally diff machines that may not have consistent internet access.. part of the requirements was to setup replication so that eventually the separate instances would
2006 Oct 17
4
ruby floating point calculations
helo eveyone, for a rails app i''m working on i need to do some calculations with some floating point data. the calculations aren''t on currency so i can''t do the trick where you do the math with integers and have the units in pennies. i would like the results to be as accurate as possible with the least amount of work (haha). any suggestions? is there a ruby gem for more
2007 Jan 16
1
calling java API from ruby
ok, i want to be able to send some data from my rails app to a CRM. The library that defines the API for talking to the CRM is written in java. I got JRuby working, which is pretty cool, but to my understanding i would have to convert my ruby on rails app to a jruby on rails app which, as far as i''ve understood, is different deal altogether and would be set up more like a java server