Permalink
Browse files

initial import

  • Loading branch information...
ryanb committed Aug 14, 2008
0 parents commit e36d9aebb092785c14c64884ae5b51934784ddbc
20 LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2008 Ryan Bates
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7 README
@@ -0,0 +1,7 @@
+Ryan on Rails TextMate Bundle
+-----------------------------
+
+Some snippets that I use when working with Ruby and Rails in TextMate.
+
+To install this bundle, just download and double click the bundle.
+Or use a tool like GetBundles.
@@ -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>class $1
+ $0
+end</string>
+ <key>name</key>
+ <string>class</string>
+ <key>scope</key>
+ <string>source.ruby</string>
+ <key>tabTrigger</key>
+ <string>class</string>
+ <key>uuid</key>
+ <string>BAA19D24-E612-47A0-9BB7-3764FEE90081</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>&lt;% content_for :${1:head} do %&gt;
+ $0
+&lt;% end %&gt;</string>
+ <key>name</key>
+ <string>content_for</string>
+ <key>scope</key>
+ <string>text.html.ruby</string>
+ <key>tabTrigger</key>
+ <string>cont</string>
+ <key>uuid</key>
+ <string>107FEA25-D17A-4D6B-AC5D-592D6620BC8F</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>class $1 &lt; ApplicationController
+ $0
+end</string>
+ <key>name</key>
+ <string>controller</string>
+ <key>scope</key>
+ <string>source.ruby.rails</string>
+ <key>tabTrigger</key>
+ <string>controller</string>
+ <key>uuid</key>
+ <string>33CE8AAE-5A5E-453D-B828-977099F0A39A</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?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>&lt;%= link_to 'Destroy', $1, :confirm =&gt; 'Are you sure?', :method =&gt; :delete %&gt;</string>
+ <key>name</key>
+ <string>destroy link</string>
+ <key>scope</key>
+ <string>text.html.ruby</string>
+ <key>tabTrigger</key>
+ <string>dlink</string>
+ <key>uuid</key>
+ <string>F102140A-B8D7-4BA8-BC52-9B89970AD1FA</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?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>&lt;%= link_to "Edit", edit_${1:item}_path($1) %&gt;</string>
+ <key>name</key>
+ <string>edit link</string>
+ <key>scope</key>
+ <string>text.html.ruby</string>
+ <key>tabTrigger</key>
+ <string>elink</string>
+ <key>uuid</key>
+ <string>2BB8DF9B-51F4-44A4-AEC2-C5D823EB5284</string>
+</dict>
+</plist>
@@ -0,0 +1,19 @@
+<?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>&lt;p&gt;
+ &lt;%= f.label :${1:name} %&gt;
+ &lt;%= f.${2:text_field} :$1$3 %&gt;
+&lt;/p&gt;</string>
+ <key>name</key>
+ <string>field</string>
+ <key>scope</key>
+ <string>text.html</string>
+ <key>tabTrigger</key>
+ <string>field</string>
+ <key>uuid</key>
+ <string>DC731AF0-5C3F-4828-BF76-DFB143B8808A</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>&lt;% for ${1:item} in ${2:items} %&gt;
+ ${3:&lt;%= ${4:$1.name} %&gt;}
+&lt;% end %&gt;</string>
+ <key>name</key>
+ <string>for loop</string>
+ <key>scope</key>
+ <string>text.html.ruby</string>
+ <key>tabTrigger</key>
+ <string>forin</string>
+ <key>uuid</key>
+ <string>257E5E85-D4CB-4AB8-9345-5B929A568B7C</string>
+</dict>
+</plist>
@@ -0,0 +1,20 @@
+<?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>&lt;% form_for $1 do |f| %&gt;
+ $0
+ &lt;p class="button"&gt;&lt;%= f.submit %&gt;&lt;/p&gt;
+&lt;% end %&gt;
+</string>
+ <key>name</key>
+ <string>form_for</string>
+ <key>scope</key>
+ <string>text.html.ruby</string>
+ <key>tabTrigger</key>
+ <string>form</string>
+ <key>uuid</key>
+ <string>DDD38863-89BF-48ED-B2AD-1EC6654E0D49</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>module $1Helper
+ $0
+end</string>
+ <key>name</key>
+ <string>helper</string>
+ <key>scope</key>
+ <string>source.ruby.rails</string>
+ <key>tabTrigger</key>
+ <string>helper</string>
+ <key>uuid</key>
+ <string>41C73D7F-B5F6-4CF6-8F16-76A0BA791D9D</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?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>&lt;%=h $1 %&gt;</string>
+ <key>name</key>
+ <string>html sanitized</string>
+ <key>scope</key>
+ <string>text.html.ruby</string>
+ <key>tabTrigger</key>
+ <string>h</string>
+ <key>uuid</key>
+ <string>EBB81BEC-145F-4277-BC90-965F4E5CF25D</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>&lt;% if $1 %&gt;
+ $0
+&lt;% end %&gt;</string>
+ <key>name</key>
+ <string>if condition</string>
+ <key>scope</key>
+ <string>text.html.ruby</string>
+ <key>tabTrigger</key>
+ <string>if</string>
+ <key>uuid</key>
+ <string>8EE90CEE-A8DB-4EF6-990E-5661E10E19E4</string>
+</dict>
+</plist>
@@ -0,0 +1,20 @@
+<?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>&lt;% if $1 %&gt;
+ $2
+&lt;% else %&gt;
+ $0
+&lt;% end %&gt;</string>
+ <key>name</key>
+ <string>if else condition</string>
+ <key>scope</key>
+ <string>text.html.ruby</string>
+ <key>tabTrigger</key>
+ <string>ife</string>
+ <key>uuid</key>
+ <string>A0D30938-35F6-4547-8352-3D0FD1BA70B8</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>class $1 &lt; ActiveRecord::Base
+ $0
+end</string>
+ <key>name</key>
+ <string>model</string>
+ <key>scope</key>
+ <string>source.ruby.rails</string>
+ <key>tabTrigger</key>
+ <string>model</string>
+ <key>uuid</key>
+ <string>6A1705DC-5891-42E9-A1FB-89890DFD055E</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>module $1
+ $0
+end</string>
+ <key>name</key>
+ <string>module</string>
+ <key>scope</key>
+ <string>source.ruby</string>
+ <key>tabTrigger</key>
+ <string>module</string>
+ <key>uuid</key>
+ <string>28FA1CD1-C613-418C-9421-42BECC55E934</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?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>&lt;%= link_to "New $1", new_$2_path %&gt;</string>
+ <key>name</key>
+ <string>new link</string>
+ <key>scope</key>
+ <string>text.html.ruby</string>
+ <key>tabTrigger</key>
+ <string>nlink</string>
+ <key>uuid</key>
+ <string>296ECA8A-1719-45A7-874A-ACD18CA0FF89</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?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>&lt;%= render :partial =&gt; $1 %&gt;</string>
+ <key>name</key>
+ <string>partial</string>
+ <key>scope</key>
+ <string>text.html.ruby</string>
+ <key>tabTrigger</key>
+ <string>part</string>
+ <key>uuid</key>
+ <string>D47DB832-D0E0-4A91-9E2B-FAFB411D94ED</string>
+</dict>
+</plist>
@@ -0,0 +1,22 @@
+<?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>&lt;% form_tag ${1:items}_path, :method =&gt; 'get' do %&gt;
+ &lt;p&gt;
+ &lt;%= text_field_tag :${2:search}, params[:$2] %&gt;
+ &lt;%= submit_tag "Search", :name =&gt; nil %&gt;
+ &lt;/p&gt;
+&lt;% end %&gt;
+</string>
+ <key>name</key>
+ <string>search form</string>
+ <key>scope</key>
+ <string>text.html.ruby</string>
+ <key>tabTrigger</key>
+ <string>search</string>
+ <key>uuid</key>
+ <string>B20D332C-2954-4AE4-B88D-3FBAACB1D9EB</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?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>&lt;%= link_to $1.name, $1 %&gt;</string>
+ <key>name</key>
+ <string>show link</string>
+ <key>scope</key>
+ <string>text.html.ruby</string>
+ <key>tabTrigger</key>
+ <string>slink</string>
+ <key>uuid</key>
+ <string>F77E9D26-292C-4C7F-96A6-E3FD2CF3C4A5</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?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>&lt;% title $1 %&gt;</string>
+ <key>name</key>
+ <string>title</string>
+ <key>scope</key>
+ <string>text.html.ruby</string>
+ <key>tabTrigger</key>
+ <string>t</string>
+ <key>uuid</key>
+ <string>DCEB3D2D-3619-4F08-B17C-D4F3C5F0E19E</string>
+</dict>
+</plist>
Oops, something went wrong.

0 comments on commit e36d9ae

Please sign in to comment.