Skip to content

Instantly share code, notes, and snippets.

View fmalamitsas's full-sized avatar

Frédéric Malamitsas fmalamitsas

  • Uzès, France
View GitHub Profile
ActionView::TemplateError (undefined method `quoted_table_name' for REXML::Comment:Class) on line #16 of app/views/spots/_big_spotted.html.haml:
13: != link_to truncate(strip_tags(spottable.description), :length => 340), spottable
14: %div.rate.small
15: != rating_stars spottable.average_rating, :container => false
16: != link_to_comments(spottable)
17: %ul.links
18: %li
19: != "<em>#{temporary_translate_item_type(spottable.class)} par</em> #{link_to_owner spottable}"
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/reflection.rb:182:in `quoted_table_name'
ActiveRecord::StatementInvalid in 'Callcenter::RegistrationsController Callcenter::RegistrationsController GET :payment_result should sum up the payment'
Mysql::Error: Cannot add or update a child row: a foreign key constraint fails (`keldelice_test`.`subscriptions`, CONSTRAINT `fk_subscriptions_organization` FOREIGN KEY (`organization_id`) REFERENCES `organizations` (`id`)): INSERT INTO `subscriptions` (`card_expiration`, `updated_at`, `price`, `start_invoice_at`, `invoice_id`, `prorata`, `billing_id`, `referrer`, `product_limit`, `freshbooks_item_id`, `payment_method`, `payment_alias`, `card_number`, `next_renewal_at`, `organization_id`, `subscription_plan_id`, `state`, `created_at`) VALUES(NULL, '2009-03-11 16:52:22', 39.0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'card', 'alias1card', NULL, '2009-04-11 16:52:22', 1017, 15, 'active', '2009-03-11 16:52:22')