Re: [Rails] Re: Testing strong parameters

2014-03-05 Thread muchira k.
Thx Fredrick! You're a STAR! On Wed, Mar 5, 2014 at 2:34 PM, Frederick Cheung wrote: > > > On Tuesday, March 4, 2014 1:49:34 PM UTC, bertly_the_coder wrote: >> >> Hi guys, >> >> Has anyone figured out how to test strong parameters? >> > > What have you got > > config.action_controller.action_on

[Rails] Re: Post requests exercised as a Get

2014-03-05 Thread Marcus Smith
The only response in the console before I click on withdraw is: event.returnValue is deprecated. Please use the standard event.preventDefault() instead I tried to go back to then (I have everything on github), but I was unsuccessful in getting it to run. Even if I revert to a previous commit, it

[Rails] Re: Post requests exercised as a Get

2014-03-05 Thread Marcus Smith
The only response in the console before I click on withdraw is: event.returnValue is deprecated. Please use the standard event.preventDefault() instead I tried to go back to then (I have everything on github), but I was unsuccessful in getting it to run. Even if I revert to a previous commit,

Re: [Rails] Post requests exercised as a Get

2014-03-05 Thread Hassan Schroeder
On Wed, Mar 5, 2014 at 1:28 PM, Marcus Smith wrote: > it used to work, but my javascript was messed up Perhaps you could use `git bisect` to find where it was "messed up" (or at least go back to before that happened and redo your changes working forward) > http://stackoverflow.com/questions/2216

Re: [Rails] [JOBS]

2014-03-05 Thread Mateus Couto
There's no contact info?! Email?! Send me some more description about it getboa_at_gmail.com Cheers Sent from my iPhone On 6 Mar 2014, at 4:57 am, Michael DeCastro wrote: Greetings, This is an informal job posting. Details and a more structured description will be provided to anyone who might

[Rails] Post requests exercised as a Get

2014-03-05 Thread Marcus Smith
Hello, I've been stuck on an issue for a few days now and I haven't been able to find any help online (asked multiple questions on stackoverflow). I'm not sure what to do anymore. Basically, I have a model 'competition' that allows users to attend it. The user can click 'attend' or 'withdraw' and

Re: [Rails] Dependency drop down list

2014-03-05 Thread Walter Lee Davis
On Mar 5, 2014, at 1:35 PM, j...@room118solutions.com wrote: > You'd need to do this in Javascript using what's called a "chained select". > There's a variety of plugins that do this, but here's one: > http://www.appelsiini.net/projects/chained > > You typically have two options: > * Wr

[Rails] Re: Dependency drop down list

2014-03-05 Thread jim
You'd need to do this in Javascript using what's called a "chained select". There's a variety of plugins that do this, but here's one: http://www.appelsiini.net/projects/chained You typically have two options: 1. Write out all of the available options for your second select when the pag

[Rails] [JOBS]

2014-03-05 Thread Michael DeCastro
Greetings, This is an informal job posting. Details and a more structured description will be provided to anyone who might be interested, via e-mail or SKYPE... This is an Internship "on steroids"... begin as an Intern with the possibility of quickly growing into a full Partner. We're activ

Re: [Rails] Rails AJAX slow compared to Node.js and websockets complex to implement in rails ?

2014-03-05 Thread mike
On Sunday, March 2, 2014 7:49:44 AM UTC-5, Gurpreet Luthra wrote: > > Have you read this: > http://greenash.net.au/thoughts/2012/11/nodejs-itself-is-blocking-only-its-io-is-non-blocking/ > > Its about having a non-blocking system which helps in increasing speed of > execution.. it not about the

Re: [Rails] Re: Mysql2::Error: Lost connection to MySQL server during query: SELECT

2014-03-05 Thread Rick
Line 265 of mysql2_adapter.rb falls right in the middle of this method definition: # Executes the SQL statement in the context of this connection. def execute(sql, name = nil) # make sure we carry over any changes to ActiveRecord::Base.default_timezone that have been

Re: [Rails] Mysql2::Error: Lost connection to MySQL server during query: SELECT

2014-03-05 Thread Jason Fleetwood-Boldt
I see this come through our trafficked websites (100-600 concurrent users) running on Heroku all the time ... also 1-2 times per hour. After talking to Heroku about it, we've always just chucked it up to network failures inside of the AWS cloud (that's basically what Heroku said about these,

Re: [Rails] Re: Mysql2::Error: Lost connection to MySQL server during query: SELECT

2014-03-05 Thread Rick
Can you replicate the error on a development system that is connected to a local version of the database? I'm thinking you might want to really hammer on the system and not impact the production db. On Wednesday, March 5, 2014 10:25:36 AM UTC-5, David Webster wrote: > > I am using an actual ID,

[Rails] Re: Mysql2::Error: Lost connection to MySQL server during query: SELECT

2014-03-05 Thread David Webster
I am using an actual ID, just redacted it for the public post. The MySQL server is remote. We process hundreds of requests a hour without the error, but around 1-2 times a hour we get this sort of error. the MySQL DB logs do not show anything, so I have eliminated it as a cause for this error. T

Re: [Rails] Re: Mysql2::Error: Lost connection to MySQL server during query: SELECT

2014-03-05 Thread David Webster
I am using an actual ID, just redacted it for the public post. The MySQL server is remote. We process hundreds of requests a hour without the error, but around 1-2 times a hour we get this sort of error. the MySQL DB logs do not show anything, so I have eliminated it as a cause for this error. Ther

[Rails] Re: Mysql2::Error: Lost connection to MySQL server during query: SELECT

2014-03-05 Thread Rick
Are you really trying to match a users.id of x or is that just a log artifact? Is your MySQL server local or remote? What happens if you issue a "Customer.find(x)" in rails console? Obviously you need to provide a valid id, not x. On Tuesday, March 4, 2014 12:43:35 PM UTC-5, David W

Re: [Rails] How to get around a reserved word

2014-03-05 Thread Jim Ruther Nill
On Wed, Mar 5, 2014 at 9:32 PM, Walter Lee Davis wrote: > > On Mar 5, 2014, at 6:40 AM, Frederick Cheung wrote: > > > > > > > On Wednesday, March 5, 2014 7:02:34 AM UTC, Walter Lee Davis wrote: > > I need to use the model name 'Action' (which will not work in Rails > 4.0.3) for business reasons (

Re: [Rails] How to get around a reserved word

2014-03-05 Thread Walter Lee Davis
On Mar 5, 2014, at 6:40 AM, Frederick Cheung wrote: > > > On Wednesday, March 5, 2014 7:02:34 AM UTC, Walter Lee Davis wrote: > I need to use the model name 'Action' (which will not work in Rails 4.0.3) > for business reasons (it's a product name). If I name the actual model > something else,

[Rails] Group_by for inbox

2014-03-05 Thread James Davis, PhD
Move the unless / if conditional statement outside of your do loop. -- 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 rubyonrails-talk+unsubscr...@googlegro

[Rails] Re: How to get around a reserved word

2014-03-05 Thread Frederick Cheung
On Wednesday, March 5, 2014 7:02:34 AM UTC, Walter Lee Davis wrote: > > I need to use the model name 'Action' (which will not work in Rails 4.0.3) > for business reasons (it's a product name). If I name the actual model > something else, is there any way to (maybe with mod_rewrite) make the URL

Re: [Rails] Importing Contacts

2014-03-05 Thread Avi
Hello, How can we end the session from the browser after importing contacts from email accounts ? On Tuesday, February 25, 2014 5:10:25 PM UTC+5:30, Avi wrote: > > Hello, > > I am successful in importing in gmail & yahoo contacts. > But when I am trying to import hotmail contacts, I am getting

[Rails] Re: Testing strong parameters

2014-03-05 Thread Frederick Cheung
On Tuesday, March 4, 2014 1:49:34 PM UTC, bertly_the_coder wrote: > > Hi guys, > > Has anyone figured out how to test strong parameters? > What have you got config.action_controller.action_on_unpermitted_parameters set to? I set it to :raise in test/development, so that submitting incorrect

[Rails] Re: find_by_sql query running incredibly slow

2014-03-05 Thread Frederick Cheung
On Wednesday, March 5, 2014 12:32:04 AM UTC, John Merlino wrote: > > reports = Report.find_by_sql(["SELECT DISTINCT ON (unit_id) r.* > FROM reports r > WHERE r.unit_id IN (?) > ORDER BY un

Re: [Rails] find_by_sql query running incredibly slow

2014-03-05 Thread Colin Law
On 5 March 2014 00:32, John Merlino wrote: > Initially, I was using this query: > > > report_ids = [] > if units.size > 0 > units.map(&:id).uniq.each do |id| > report_id = Report.select(:id).where(unit_id: id).order("time > desc").first > unless report_id.nil? >

[Rails] Re: Charts in Rails 4 application

2014-03-05 Thread Aurick
Either use D3 https://github.com/logical42/d3_rails Or, https://github.com/winston/google_visualr for Open source. Both are paid 1) High charts 2) Fusion Charts -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe

[Rails] Re: multiple files upload

2014-03-05 Thread Aurick
https://github.com/thoughtbot/paperclip -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. To post to this gro