Skip to content

Instantly share code, notes, and snippets.

View gabeodess's full-sized avatar

Gabe Odess gabeodess

  • RigUp
  • Austin TX
  • 12:31 (UTC -05:00)
View GitHub Profile
@gabeodess
gabeodess / deliveries.rb
Last active August 29, 2015 14:01
Nested attributes being ignored for large requests.
class Delivery < ActiveRecord::Base
with_options :dependent => :destroy do |i|
i.has_many :stops
i.has_many :shares, :inverse_of => :delivery
end
with_options :through => :stops do |i|
i.has_many :drop_offs
end
User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3178 LIMIT 1
Geokit is using the domain: localhost
AdminUser Load (0.4ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" IN (0, 2, 0) LIMIT 1
SQL (8.3ms) UPDATE "users" SET "last_login_at" = '2014-05-20 13:08:40.242561' WHERE "users"."id" = 3178
Farm Load (2.4ms) SELECT "farms".* FROM "farms" WHERE "farms"."user_id" = 3178 AND "farms"."status" = 'approved' LIMIT 1
Farm Load (0.7ms) SELECT "farms".* FROM "farms" WHERE "farms"."status" = 'approved' AND "farms"."user_id" = 3178 LIMIT 1
Delivery Load (0.5ms) SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."farm_id" = 82 AND "deliveries"."id" = $1 LIMIT 1 [["id", "1287"]]
Farm Exists (0.4ms) SELECT 1 AS one FROM "farms" WHERE (("farms"."user_id" = 3178 AND "farms"."status" = 'approved')) LIMIT 1
(0.8ms) BEGIN
Share Load (1.1ms) SELECT "shares".* FROM "shares" WHERE "shares"."delivery_id" = 1287 AND "shares"."id" IN (11301, 11308, 11321,
Here is the backtrace I am getting. I have not done anything except follow the instruction to setup split at: https://github.com/andrew/split
## View
<%= f.submit ab_test('csn_submit_button', 'Submit', 'Submit!'), data:{disable_with:'...'}, class:'btn btn-primary' %>
## Controller
finished('csn_submit_button') if URI.parse(request.referrer).path == root_path
## Error message
argument out of range
## Models
class Bank < ActiveRecord::Base
using_access_control
has_many :bank_accounts
has_many :bank_statements
validates_presence_of :name
end
** Daemonized, any open files are closed. Look at log/mongrel.8000.pid and log/mongrel.8000.log for info.
** Starting Mongrel listening at 0.0.0.0:8000
** Initiating groups for "mongrel":"mongrel".
** Changing group to "mongrel".
** Changing user to "mongrel".
** Starting Rails with production environment...
/usr/lib/ruby/1.8/open-uri.rb:88:in `initialize': Permission denied - /var/www/wwwcom/log/production.log (Errno::EACCES)
from /usr/lib/ruby/1.8/open-uri.rb:88:in `open'
from /usr/lib/ruby/1.8/logger.rb:527:in `open_logfile'
from /usr/lib/ruby/1.8/logger.rb:496:in `initialize'