Permalink
Browse files

Added nested model fields_for snippets (nff)

  • Loading branch information...
1 parent bafa3be commit 009212712959131854d99bb82f009517d418f2fc @lautis committed Mar 4, 2009
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>accepts_nested_attributes_for :${1:association_name}${2:${3:, :allow_destroy =&gt; true}${4:, :reject_if =&gt; proc { |obj| ${5:obj.blank?} }}}
+ <string>accepts_nested_attributes_for :${1:association_name}${2:${3:, :allow_destroy =&gt; true}${4:, :reject_if =&gt; proc { |obj| ${5:obj.blank?} \}}}
</string>
<key>name</key>
<string>accepts_nested_attributes_for</string>
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>${TM_RAILS_TEMPLATE_START_RUBY_INLINE}f.fields_for :${1:attribute} do |${2:f}|${TM_RAILS_TEMPLATE_END_RUBY_INLINE}
+ $0
+${TM_RAILS_TEMPLATE_END_RUBY_BLOCK}</string>
+ <key>name</key>
+ <string>f.fields_for (nff)</string>
+ <key>scope</key>
+ <string>text.html.ruby, text.haml</string>
+ <key>tabTrigger</key>
+ <string>f.</string>
+ <key>uuid</key>
+ <string>BBE5B6F2-A8F2-4714-9186-4FCD21A5B432</string>
+</dict>
+</plist>
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>${TM_RAILS_TEMPLATE_START_RUBY_INLINE}f.fields_for :${1:attribute} do |${2:f}|${TM_RAILS_TEMPLATE_END_RUBY_INLINE}
+ $0
+${TM_RAILS_TEMPLATE_END_RUBY_BLOCK}</string>
+ <key>name</key>
+ <string>form_for fields_for</string>
+ <key>scope</key>
+ <string>text.html.ruby, text.haml</string>
+ <key>tabTrigger</key>
+ <string>nff</string>
+ <key>uuid</key>
+ <string>16645C58-C7C8-4E72-923F-3B44932F946D</string>
+</dict>
+</plist>
View
@@ -518,6 +518,7 @@
<string>5DBA8F72-DD6C-4CBF-83FD-76301E159BA9</string>
<string>79BC2303-3D9D-4E21-AF85-73B388B7B56D</string>
<string>C315EC5D-A7F3-49CB-9795-21B78BB42FF4</string>
+ <string>BBE5B6F2-A8F2-4714-9186-4FCD21A5B432</string>
</array>
<key>name</key>
<string>form_for f. drop-down list</string>
@@ -598,6 +599,7 @@
<string>99FEFD9B-5A07-46E3-950D-5C474E42B695</string>
<string>C8BA285D-E12E-4AB8-A941-514C963E8226</string>
<string>3000E569-4E19-4566-B08E-A3FFFAAC9075</string>
+ <string>16645C58-C7C8-4E72-923F-3B44932F946D</string>
</array>
<key>name</key>
<string>form_for helpers</string>
@@ -719,6 +721,8 @@
<string>7D99041D-C3B7-4940-AE64-6B1758CDB47C</string>
<string>15BDD7B6-5C15-4684-93C7-A05E3D2221AC</string>
<string>7C7FC66A-D566-40D3-B9DA-FCEA4EFF98C6</string>
+ <string>BBE5B6F2-A8F2-4714-9186-4FCD21A5B432</string>
+ <string>16645C58-C7C8-4E72-923F-3B44932F946D</string>
<string>402C251E-595B-4A58-8EB9-41989040F280</string>
<string>B31822D9-2048-4D16-B2AF-00E0B4E5C368</string>
<string>CC1BCD1C-2479-4335-B511-17B880316A75</string>

0 comments on commit 0092127

Please sign in to comment.