[Rails] Adding instant messaging/chat to rails application

2013-12-05 Thread bertly_the_coder
Hi guys, I have a membership based application and would like to add a chat/instant messaging feature for members to chat amongst each other. Any suggestions? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group

[Rails] Adding instant messaging to a rails application

2013-12-05 Thread bertly_the_coder
Hi guys, I have a membership based application and would like to add a chat/instant messaging feature for members to chat amongst each other. I'm thinking facebook chat where the chats are either chat(when both are online) or are delivered to the inbox, when offline or blocked. Any

[Rails] Re: chaining relations break?

2013-12-05 Thread Matt Jones
On Wednesday, 4 December 2013 19:00:31 UTC-5, Ruby-Forum.com User wrote: 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

Re: [Rails] Array param does not work

2013-12-05 Thread Matt Jones
On Wednesday, 4 December 2013 21:20:36 UTC-5, mar...@handcom.com.br wrote: 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

[Rails] Re: rails and passenger memory issues

2013-12-05 Thread Jim
On Tuesday, December 3, 2013 8:03:51 PM UTC-5, John Merlino wrote: I'm using Rails 3, Passenger, and Postgresql. Yesterday the rails application was running very slow. So I rebooted the server. Less than 24 hours later, it is consuming even more memory than before and when trying to load

[Rails] Re: chaining relations break?

2013-12-05 Thread Fearless Fool
Matt: If you just want data rolled up for *one* Utility (I'm guessing that's what `u` in the code above is...) you could skip the group: sum = u.utility_data.sum(:ami_residential) You are spot on: in this case I'm just considering one Utility at a time. I don't know what possessed me to

[Rails] Recommendations for a fast standalone ActiveRecord process?

2013-12-05 Thread xop
Hi, I need to create a standalone script that uses ActiveRecord. I want it to be as fast as possible, without loading a lot of extra elements. It seems to work fine to use ActiveRecord::Base.establish_connection and include my models/ files, but some of those models use the methods named:

[Rails] Build up your Ruby on Rails expert reputation and get paid to help others code

2013-12-05 Thread Forest Good
Rubyists and Rails experts, Wanted to share a project I am working on. It is called www.hackhands.com and is a real-time marketplace for connecting with expert programmers in order to help solve problems hands on. The marketplace will be for the Rails community exclusively at first. Here

[Rails] Re: Recommendations for a fast standalone ActiveRecord process?

2013-12-05 Thread Frederick Cheung
On Thursday, December 5, 2013 9:06:06 PM UTC, xop wrote: Hi, I need to create a standalone script that uses ActiveRecord. I want it to be as fast as possible, without loading a lot of extra elements. It seems to work fine to use ActiveRecord::Base.establish_connection and include my

[Rails] Re: ruby script if statement

2013-12-05 Thread yinwen Xuan
Scott Ribe wrote in post #1129470: On Dec 3, 2013, at 6:08 PM, yinwen Xuan li...@ruby-forum.com wrote: Sorry Scott, All fixed now. you are a good teacher!! let me know if you want student, I am happy to pay tuition ;-) I'm glad it's working. One last thing, regarding people who told you

[Rails] Re: ruby script if statement

2013-12-05 Thread Joel Pearson
Rather than asking for small pieces of information one at a time on a forum, you would be much better served by completing a few Rails tutorials and creating some Rails projects on your own computer. Then you will understand what's happening on the server. -- Posted via