Re: [Rails-core] How do I Create a Scope for Last Month?

2013-08-01 Thread Al Tenhundfeld
This mailing list for the discussion of development of core Rails features. For support please consider using Stackoverflow, Quora, #RubyOnRails on IRC or the rubyonrails-talk mailing list. I sent you a reply off list. -Al On Thu, Aug 1, 2013 at 11:06 PM, wrote: > I have a Rails 3.2 app with a

[Rails-core] How do I Create a Scope for Last Month?

2013-08-01 Thread info
I have a Rails 3.2 app with an Article model that has a field for date. I want to create a scope that will retrieve all records from last month. The problem I'm having is that my current scope is not including the first day of the month. # article.rb scope :last_month, lambda { { conditions: {

Re: [Rails-core] ActiveRecord::Base.exists? returning 1 instead of true

2013-08-01 Thread Xavier Noria
On Fri, Aug 2, 2013 at 12:19 AM, Luiz Felipe Garcia Pereira < luiz.felipe...@gmail.com> wrote: Hi, I know 1 is truthy and nil is falsy, so it still does as described in > the method documentation, but in previous versions it returned true/false > (as I expect by its signature). > In Ruby you shou

Re: [Rails-core] ActiveRecord::Base.exists? returning 1 instead of true

2013-08-01 Thread Steve Klabnik
Ruby methods don't have signatures. ;) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscr...@googlegroups.com. To post to this grou

[Rails-core] ActiveRecord::Base.exists? returning 1 instead of true

2013-08-01 Thread Luiz Felipe Garcia Pereira
Hi, I know 1 is truthy and nil is falsy, so it still does as described in the method documentation, but in previous versions it returned true/false (as I expect by its signature). Is there a reason this has changed? Thanks! -- Luiz Felipe G. Pereira -- You received this message because you ar

[Rails-core] Re: Please provide a formal explanation of Rails 3.x clobbering behavior

2013-08-01 Thread Andrew Vit
Agreed, it's all a bit too spooky right now. I started compiling a table of different queries and their behaviour (clobber vs. append) between 3.2.12 and 3.2.14. I'm not totally there yet, but I'll put it up when I think I have a good understanding so we can know exactly what tests we need to w

Re: [Rails-core] Re: [Rails] Required :Embed voice recorder on a webpage for a rural innovation project

2013-08-01 Thread Godfrey Chan
This mailing list for the discussion of development of core Rails features. For support please consider using Stackoverflow, Quora, #RubyOnRails on IRC or the rubyonrails-talk mailing list. Please stop replying to this thread and reply to the OP directly if you would like to continue the discu

Re: [Rails-core] Re: [Rails] Required :Embed voice recorder on a webpage for a rural innovation project

2013-08-01 Thread Dheeraj Kumar
I'm not the OP :) Since this is about rural development and stuff, I assumed the OP's users would be using older, non-HTML5 supported browsers. Hence my recommendation. Also, Red5 seems like an overkill. All he wants is WAV, not a full-blown media server. -- Dheeraj Kumar On Thursday 1 Aug

[Rails-core] Required :Embed voice recorder on a webpage for a rural innovation project

2013-08-01 Thread sunandan madan
Dear Ruby Community, We are a startup (Dhwani Rural Information Systems) who help build customized and scalable ICT solutions for NGO's and Development Agencies by providing them a tool to send critical information in rural areas as a voice call. All the ngo has to do

Re: [Rails-core] Re: [Rails] Required :Embed voice recorder on a webpage for a rural innovation project

2013-08-01 Thread T.Raghavendran
Hello Dheeraj, haven't used anything like this before though this must help you - http://www.html5rocks.com/en/tutorials/getusermedia/intro/ thanks, Raghavendra Thanks, Raghavendra Shet Blog On Thu, Aug 1, 2013 at 5:22 PM, Dheeraj Kumar wrote: > Use https:/

[Rails-core] Re: [Rails] Required :Embed voice recorder on a webpage for a rural innovation project

2013-08-01 Thread Dheeraj Kumar
Use https://code.google.com/p/wami-recorder/ -- Dheeraj Kumar On Thursday 1 August 2013 at 4:58 PM, sunandan madan wrote: > Dear Ruby Community, > > We are a startup (Dhwani Rural Information Systems > (http://dhwani.herokuapp.com)) who help build customized and scalable ICT > solutions for

Re: [Rails-core] Does Rails need support of `NULLS FIRST|LAST` for `ORDER BY` expression?

2013-08-01 Thread Paul Nikitochkin
Thanks, cool! I'm also agree with that (this option saw in sequel gem), will create PR for it. On Thursday, August 1, 2013 8:21:31 AM UTC+3, Aaron Patterson wrote: > > On Thu, Aug 01, 2013 at 11:07:57AM +1200, Will Bryant wrote: > > It's not hard to implement an equivalent for mysql, to reverse