Skip to content

Instantly share code, notes, and snippets.

@asmolero
asmolero / gist:2015214
Created March 11, 2012 05:59
paper_trail breaks globalize3
##### With has_paper_trail and without :versioning => true
ruby-1.9.2-p290 :001 > p = Page.find(2)
Page Load (24.2ms) SELECT "pages".* FROM "pages" WHERE "pages"."id" = $1 LIMIT 1 [["id", 2]]
=> #<Page id: 2, position: 2, ptest_id: 1, created_at: "2012-02-26 16:14:05", updated_at: "2012-03-11 05:35:52", questions_count: 3>
ruby-1.9.2-p290 :002 > p.name = "pageENNNN"
Page::Translation Load (0.5ms) SELECT "page_translations".* FROM "page_translations" WHERE "page_translations"."page_id" = 2
=> "pageENNNN"
ruby-1.9.2-p290 :003 > p.save
(0.3ms) BEGIN
@asmolero
asmolero / rails_admin.ca.yml
Created February 8, 2012 02:21
rails_admin translation for Catalan
ca:
home:
name: Inici
views:
pagination:
previous: "&laquo; Anterior"
next: "Següent &raquo;"
truncate: "…"
admin:
misc: