first commit of a million rails snippets, conditions missing, command implementation missing...

This commit is contained in:
capitaomorte
2009-11-16 07:09:38 +00:00
parent ead36b2544
commit 96b5606d66
213 changed files with 1592 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: ffcb
# contributor: Translated from TextMate Snippet
# name: form_for check_box
## condition: "text.html.ruby, text.haml"
# --
<%= f.check_box :${1:attribute} %>

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: ffff
# contributor: Translated from TextMate Snippet
# name: form_for file_field
## condition: "text.html.ruby, text.haml"
# --
<%= f.file_field :${1:attribute} %>

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: ffhf
# contributor: Translated from TextMate Snippet
# name: form_for hidden_field
## condition: "text.html.ruby, text.haml"
# --
<%= f.hidden_field :${1:attribute} %>

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: ffl
# contributor: Translated from TextMate Snippet
# name: form_for label
## condition: "text.html.ruby, text.haml"
# --
<%= f.label :${1:attribute}${2:, "${3:${1:$(capitalize (replace-regexp-in-string "_" " " yas/text))}}"} %>

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: ffpf
# contributor: Translated from TextMate Snippet
# name: form_for password_field
## condition: "text.html.ruby, text.haml"
# --
<%= f.password_field :${1:attribute} %>

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: ffrb
# contributor: Translated from TextMate Snippet
# name: form_for radio_box
## condition: "text.html.ruby, text.haml"
# --
<%= f.radio_box :${1:attribute}, :${2:tag_value} %>

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: ffs
# contributor: Translated from TextMate Snippet
# name: form_for submit
## condition: "text.html.ruby, text.haml"
# --
<%= f.submit "${1:Submit}"${2:, :disable_with => '${3:$1ing...}'} %>

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: ffta
# contributor: Translated from TextMate Snippet
# name: form_for text_area
## condition: "text.html.ruby, text.haml"
# --
<%= f.text_area :${1:attribute} %>

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: fftf
# contributor: Translated from TextMate Snippet
# name: form_for text_field
## condition: "text.html.ruby, text.haml"
# --
<%= f.text_field :${1:attribute} %>