Skip to content

Instantly share code, notes, and snippets.

@xoen
xoen / keybase-proof.md
Created December 22, 2017 11:50
Keybase proof

Keybase proof

I hereby claim:

  • I am xoen on github.
  • I am xoen (https://keybase.io/xoen) on keybase.
  • I have a public key ASA1xI6Y_Y-rjFRWO6Xmq4GM94pffUjsuDLmBpkC8yuJZwo

To claim this, I am signing this object:

@xoen
xoen / gist:3638656
Created September 5, 2012 15:40
The [1] array is translated in a footnote, using the HTML Entities for square brackets (91 and 93) prevents it. Is there a better solution? Is it OK to comment this way?
xoen@ormofy:~/projects/rails/docrails/guides$ git diff
diff --git a/guides/source/action_view_overview.textile b/guides/source/action_view_overview.textile
index 1fd98a5..2fe9464 100644
--- a/guides/source/action_view_overview.textile
+++ b/guides/source/action_view_overview.textile
@@ -1211,7 +1211,10 @@ Sample usage (selecting the associated Authors for an instance of Post, +@post+)
collection_check_boxes(:post, :author_ids, Author.all, :id, :name_with_initial)
</ruby>
-If <tt>@post.author_ids</tt> is [1], this would return: