[Rails] I thought Rails 3.2 ActionController automatically converts JSON params hashes...

2013-07-06 Thread G-money
Hey, I was thinking I'd have my controllers do double-duty: the same actions handling json and html requests differentially. For this, it's useful that Rails 3.2 automatic params hash conversion from json work (as described here

[Rails] Any Rails guru around in the next hour or so for a phone consultation at $1 per min ?

2013-07-06 Thread Philip Rhoades
People, I need advice about the most sensible way to do this UI: https://docs.google.com/document/d/1HKPIgtxIIZIT5YjBxrZq2Jcma1L8XAEDz8BQ4FGYL0I/pub ie it is a menu-driven chat environment - the back end is via TCP sockets and is already going, I just need to work out how to do the menu and a

Re: [Rails] Send multiple emails

2013-07-06 Thread thiagocifani
The major problem would be if you are a user and somehow when you signup or try to sendo those emails through some action, the server could return a timeout response, if you have a lot of users. What I recommend you to do is, put all mailers call inside a worker like sidekiq or sucker_punch. it wil

Re: [Rails] myModel.all returns only 138 records

2013-07-06 Thread Colin Law
On 6 July 2013 11:15, Geoffroy Gomet wrote: > Hi, > > As of Rails 4, the order is by default based on the id DESC. > So Model.last produces the following sql: > > SELECT * FROM models ORDER BY models.id DESC LIMIT 1 > > > That said, I've no idea why you only get a part of the records back. It is

Re: [Rails] myModel.all returns only 138 records

2013-07-06 Thread Geoffroy Gomet
Hi, As of Rails 4, the order is by default based on the id DESC. So Model.last produces the following sql: *SELECT * FROM models ORDER BY models.id DESC LIMIT 1* That said, I've no idea why you only get a part of the records back. Were you able to validates all those numbers directly on the DB

[Rails] Send multiple emails

2013-07-06 Thread Paul Bergstrom
Any problems sending a lot of emails with rails like this: @members = Members.all @members.each do |m| MemberMailer.message(@message, m).deliver end -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"