Skip to content

Instantly share code, notes, and snippets.

@inem
Created August 21, 2009 16:23
Show Gist options
  • Select an option

  • Save inem/172159 to your computer and use it in GitHub Desktop.

Select an option

Save inem/172159 to your computer and use it in GitHub Desktop.
-comments
:only
.name
.background
.foreground
:methods
.commenter_name
.date
// по дефолту protein_hits (1)
// "=>" ренэймим в proteins (2)
// # - def helper(d); d.created_at + '!'; end
-@protein_hits => :proteins
// methods, only, except, include - с минусом (1)
// вместо include - "+name_of_association" (2)
:methods
.mascot_identified_hit
.label
.confirmed? => confirmed
.spot
.descrption
.comment_text
// rails way!! ", :object => comments" - опционально
//=render :partial => 'comments', :object => comments
&comments
+taggings
:methods
// передача параметров в метод (3)
.created_at.to_s(:short) => date
//=helper => extended_data
// "<" подклеит на уровень выше
<tag
:only
.name
.background
.foreground
<tagger
:only
.login
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment