[rails-oceania] Re: Throttling / debouncing a model method

2013-11-11 Thread Darcy Laycock
We use sidekiq-limit_fetch, but that's only part of the solution - and didn't solve this specific example for us. The best we've had luck with is sidekiq-middleware (https://github.com/krasnoukhov/sidekiq-middleware) - in this case, you'd use unique: :all (so it works with scheduled jobs and pe

[rails-oceania] Re: What exception aggregating services do you use?

2012-07-11 Thread Darcy Laycock
We've been trying out Bugsnag (http://bugsnag.com/) over the last two weeks, and so far it's been a fantastic experience (albeit incredibly young - they launched just under two weeks ago). In terms of differences, the big thing for me is the ability to add custom metadata along with exceptions

[rails-oceania] Re: Red Dot Ruby Conf 2012 - Accommodation

2012-04-18 Thread Darcy Laycock
Mario Visic, Myself and Two others (I'm not sure of their names off the top of my head, sorry) are staying at the Novotel (There was an awesome sale a few weeks ago - I think we ended up getting 50% off). If you're staying at any Accor chain hotels (e.g. Novotel or Ibis), you can also get a dec

[rails-oceania] [Hack Day] Music Hack Day Sydney

2012-02-16 Thread Darcy Laycock
Howdy guys, I hope you guys don't mind me posting it here but I figured there may be a few people possibly interested in attending - We (Filter Squad in Perth) are working on organising a 24 hour Music Hack Day in Sydney on April 28th & 29th. For those not familiar with Music Hack Day, it's a s

[rails-oceania] Re: Is there any Rails company and community in Perth area?

2011-09-18 Thread Darcy Laycock
We're not as big as the RORO communities in some of the other states, but there definitely is a community and companies here in Perth. We hold monthly meetups (http://www.perthrubyonrails.com.au/) - with the next one being a bit over a month away I believe. In terms of companies, the main compa

[rails-oceania] Re: returning an ActiveRecord::Relation from a has_many association

2011-08-21 Thread Darcy Laycock
AR is deceiving and actual returns a proxy that passes .class to the loaded data. Try this: @project.assets.where(:active => true).class It should be what you expect (e.g. they are chainable in the same fashion) -- You received this message because you are subscribed to the Google Groups "Ruby

Re: [rails-oceania] Re: JSON from the Command Line

2011-02-20 Thread Darcy Laycock
Try using unless request.format.json? On Monday, 21 February 2011 at 1:37 PM, Mark Mansour wrote: In my API I want to reject non JSON calls so I have > > before_filter :reject_non_json_requests > > def reject_non_json_requests > render :status => :unsupported_media_type, > :text => "" if reques

Re: [rails-oceania] Decorators / attr_protected: filtering model inputs and outputs

2010-12-02 Thread Darcy Laycock
eania" group. > To post to this group, send email to rails-ocea...@googlegroups.com. > To unsubscribe from this group, send email to > rails-oceania+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rails-oceania?hl=en. --

[rails-oceania] Re: has many, belongs to just doesn't do it.

2010-11-30 Thread Darcy Laycock
o ensure you use something like @user.socks.build(...) or manually set the user (If you need to let it be set in the form from a choice of multiple users, also possibly user_id as mentioned by Jeff). On Nov 30, 7:00 pm, Darcy Laycock wrote: > Try validating presence of user instead of user_id and

Re: [rails-oceania] has many, belongs to just doesn't do it.

2010-11-30 Thread Darcy Laycock
Try validating presence of user instead of user_id and it shouldn't be an issue. On 30/11/2010, at 6:56 PM, Rimian Perkins wrote: > Hi All, > > I've created two models, user and socks where a user has many socks. Then, I > created the migration but when I create a new user and save a new soc

Re: [rails-oceania] search engine friendly urls?

2010-11-01 Thread Darcy Laycock
ania" group. > To post to this group, send email to rails-ocea...@googlegroups.com. > To unsubscribe from this group, send email to > rails-oceania+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rails-oceania?hl=en. &

Re: [rails-oceania] One more Ruby rumble team

2010-09-15 Thread Darcy Laycock
edIn] > <http://www.linkedin.com/in/bjeanes>[image: > Twitter] <http://twitter.com/bjeanes>[image: Tungle.me] > <http://tungle.me/bjeanes>[image: > Blog] <http://bjeanes.com> > Whttp://bjeanes.com e...@bjeanes.comt+61412639224 > [image: Google Talk] [image

Re: [rails-oceania] Jquery ajax iframe modal recommendation that works well with rails?

2010-09-06 Thread Darcy Laycock
> > > > -- > Dan Cheail > Big Geek, > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To post to this group, send email to rails-ocea...@googlegroups.com. > To unsubscribe from this group, send em

Re: [rails-oceania] What does it mean by "rails is not scalable"?

2010-08-19 Thread Darcy Laycock
gt; "Ruby or Rails Oceania" group. > To post to this group, send email to rails-ocea...@googlegroups.com. > To unsubscribe from this group, send email to > rails-oceania+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/ra

[rails-oceania] Re: is SVN export to git repository too complicated ??

2010-07-26 Thread Darcy Laycock
Using git-svn, it shouldn't be hard at all - in fact, the process is mostly automated (e.g. you setup a mapping for svn authors to git authors and then run a couple of commands) - See migration tutorials under http://www.gitready.com/beginner/2009/02/04/converting-from-svn.html On Jul 27, 2:22 pm

[rails-oceania] Re: fish and PATH

2009-09-01 Thread Darcy Laycock
I'm still fairly new to fish (finally got it working yesterday), and I'm no where near Brisbane, but I'd be interesting in working on it as well On Sep 1, 12:03 pm, Bodaniel Jeanes wrote: > I love Fish. I really really love it. But RVM just came out and looks so > damn cool but doesn't work with

[rails-oceania] Re: Rails Rumble 2009 registrations now open

2009-07-11 Thread Darcy Laycock
It should end Sunday at Midnight GMT. BUT, we do let you chance everything (inc. team name) this year right up until the competition opens so if you want a spot, it's best to sign up as soon as possible. Incidentally, if any Aussie places are interested in hosted a meetup / place to code during

[rails-oceania] Re: New gem on the block: Numerouno

2009-05-10 Thread Darcy Laycock
I just had a play around with it an numerouno is very cool (and recognised most things I threw at it) The only ones it failed on where, amusingly, when it was the numerical representation (e.g. 66) - It's easy enough do the checks in my own code but it'd be damn cool if it handled it itself (If I