[Rails] How to disable instrumentation in rails 3?

2012-02-16 Thread snacktime
There is a bug in jruby that causes thread locks around things like accesses to class attributes created with class_attribute. The notifications system is affected by this, and it's blowing up our app. We need to disable all instrumentation and notifications for the time being. Anyone know how

[Rails] autotest + test unit + rcov examples?

2011-08-25 Thread snacktime
I'm having a hard time finding any examples of the right way to use rcov with autotest and test unit under rails.I can't find a single blog post that covers this. In particular examples of what you put in .autotest would be very helpful. Chris -- You received this message because you are

[Rails] Re: autotest + test unit + rcov examples?

2011-08-25 Thread snacktime
, yet the simple act of loading the classes means rcov thinks a lot of it is 'covered'. So what are people using to measure code coverage in rails? Chris On Thu, Aug 25, 2011 at 12:01 PM, snacktime snackt...@gmail.com wrote: I'm having a hard time finding any examples of the right way to use

[Rails] Run code after response has been sent

2011-01-27 Thread snacktime
In a previous project using rails 2 I had to hack into ActionController::process in order to run some code AFTER the response had been sent. We have a custom logger that logs to scribe, and we need to send the http response code in the log message. What the correct way with rails 3 to run

[Rails] Making async tcp connections from rails

2010-03-05 Thread snacktime
So I've never really found a solution I like for making async tcp connections from inside a running rails app, and was curious if anyone else has had any luck. When running fairly large scale rails apps we always end up needing this. The only thing I've tried so far that really works is to run

[Rails] Re: NoMethodError: undefined method `[]' for #JSON::Ext::Generator::State:0x2407ea8

2009-07-28 Thread snacktime
On Mon, Jul 27, 2009 at 6:38 PM, Rafi Jacoby rjac...@astrokid.com wrote: Anyone encounter/conquer this? Ya, they changed how parse/generate works I think it accepts/returns arrays now. Changing the behavior of a gem like that is wrong. Can we get this changed back please? Chris

[Rails] Re: Rails vs PHP in resource usage

2009-07-19 Thread snacktime
On Sun, Jul 19, 2009 at 12:36 AM, Mike C snib...@gmail.com wrote: I'd like to know if Rails requires significantly more resources than PHP. Yes. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] postgresql broken on windows in 2.3-stable

2009-06-02 Thread snacktime
The addition of quote_indent in the postgresql adapter has broken postgresql support on windows. The postgres-pr gem was the only driver working with rails on windows, and it doesn't have quote_indent. The newer drivers such as ruby-pg probably do have the quote_indent method, but rails

[Rails] Re: scalable file uploads with Rails

2009-02-07 Thread snacktime
We started using the nginx upload module about a month ago and it works great. Whatever you do you don't want rails in the file upload loop on a busy site. You can easily starve out other requests and put your servers into a death spiral. http://www.grid.net.ru/nginx/upload.en.html.

[Rails] Re: Model-less Rails?

2009-01-22 Thread snacktime
Yes that will work. I've been working on something very similar for an opensocial container, where I use models not tied to a database. I use something similar to this, although I also overrite save so you can validate on save.

[Rails] OT: hosted full text search

2009-01-17 Thread snacktime
Does anyone know of a hosted full text search solution with an api for indexing arbitrary data? I've seen lots of stuff for web indexing, but that's all I can find. Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Rails] Opensocial container

2009-01-12 Thread snacktime
I've been working on a ruby/rails implementation of an opensocial container, and I'm curious how many people would actually be interested in such a beast if it was open source. Even with a container you still have some amount of work integrating it into your own system, it's no small task. On

[Rails] Re: No Configuration!!! WHAT?!

2008-12-24 Thread snacktime
On Wed, Dec 24, 2008 at 7:01 PM, Oroku Saki rails-mailing-l...@andreas-s.net wrote: Oh, it's just that somebody who has spent 8-10 years taking programming courses, and teaches 5 level programming tends to probably know a bit more than your average railbird who hasn't done anything

[Rails] Re: RoR IDE

2008-12-21 Thread snacktime
I used vi/vim for years, and only recently gave a full IDE a real honest try. Not sure I would call vim an IDE, although it's gotten a lot closer to one then it used to be. I settled on using Netbeans. There are some things I really like about radrails, but they force some stuff into their ide

[Rails] Re: is there an activerecord method like FIND EXISTING OR CREATE NEW IF NONE FOUND?

2008-12-21 Thread snacktime
Yes, look at dynamic attribute based finders in the activercord docs. http://api.rubyonrails.org/classes/ActiveRecord/Base.html. Chris On Sun, Dec 21, 2008 at 7:39 PM, Greg Hauptmann greg.hauptmann.r...@gmail.com wrote: Just wondering if rails has a method to look for an existing record and