[Rails] Re: Controller function - Length

2013-12-04 Thread lekha p.
Hi all, Thank you. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to

[Rails] quick workaround sunspot solr + too many open files error

2013-12-04 Thread sakthi cg
This link is very helpful to fix solr- Too many open files error. http://ithubinfo.blogspot.com/2013/07/how-to-increase-ulimit-open-file-and.html#chitika_close_button Max Number of ulimit open file : It's provide open file resource availability in linux Increase max number of ulimit open file

[Rails] Getting OptionParser::InvalidOption error while installing rails

2013-12-04 Thread Muralitharan A.
Hi, Topic : Ruby On Rails Issue : Error while installing rails using rubygems. Description: Am using ruby 1.9.3p194 and rubygems-2.1.7 on Ubuntu 12.0. Getting the below error when trying to install Rails using rubyGems. gem install rails --include-dependencies ERROR: While executing gem ...

Re: [Rails] Getting OptionParser::InvalidOption error while installing rails

2013-12-04 Thread Colin Law
On 4 December 2013 18:10, Muralitharan A. li...@ruby-forum.com wrote: Hi, Topic : Ruby On Rails Issue : Error while installing rails using rubygems. Description: Am using ruby 1.9.3p194 and rubygems-2.1.7 on Ubuntu 12.0. There is not a Ubuntu 12.0. Perhaps you mean 12.04. I recommend

[Rails] Array param does not work

2013-12-04 Thread marcus
Hello, in my code, the array param does not work. reponse = RestClient.post( 'https://mandrillapp.com/api/1.0/messages/send.json', {:key = X, :message = { :html = ' teste ', :text = 'Example text content', :subject = 'example subject', :from_email = 'te...@handcom.com.br',

[Rails] Create a scope that groups unique id and recent date

2013-12-04 Thread Bo Pritchard
I want to write a scope that returns the most recent (created_at) row for each person_id So this table id person_id created_at 11112013-12-01 08:00 22222013-11-20 07:00 31112013-12-10 09:00 43332013-10-21 08:00 5333

Re: [Rails] Getting OptionParser::InvalidOption error while installing rails

2013-12-04 Thread Thomas Murphy
On Wed, Dec 4, 2013 at 1:10 PM, Muralitharan A. li...@ruby-forum.comwrote: Hi, Topic : Ruby On Rails Issue : Error while installing rails using rubygems. Description: Am using ruby 1.9.3p194 and rubygems-2.1.7 on Ubuntu 12.0. Getting the below error when trying to install Rails using

[Rails] Re: chaining relations break?

2013-12-04 Thread Fearless Fool
Solved (though I'm not entirely sure why this works): UtilityDatum. select(sum(ami_residential)). where(:utility = u). group(utility_id). reorder(''). first The reorder() prevents the ORDER BY clause from being emitted, so the generated SQL is valid. -- Posted via

Re: [Rails] Array param does not work

2013-12-04 Thread tamouse pontiki
On Wed, Dec 4, 2013 at 2:14 PM, mar...@handcom.com.br wrote: Hello, in my code, the array param does not work. reponse = RestClient.post( 'https://mandrillapp.com/api/1.0/messages/send.json', {:key = X, :message = { :html = ' teste ', :text = 'Example text

Re: [Rails] Array param does not work

2013-12-04 Thread marcus
Hi tamouse, thank you your replay. I close the hash but the erro continues, see: *My code:* reponse = RestClient.post( 'https://mandrillapp.com/api/1.0/messages/send.json', {:key = X, :message = { :html = 'teste', :text = 'Example text content', :subject = 'example

[Rails] I have bloat. Should I use Rack::Bug, MemoryLogic or Oink on Rails 3 app?

2013-12-04 Thread John Merlino
I have severe bloat, spending most of the day killing rack processes on my server. I need to figure out the cause. Most likely too many activerecord objects allocated in memory, to the point that rock process exceeds 1 gig of private dirty memory. Should I use Rack::Bug, MemoryLogic or Oink on