Sha256: cf9bc1cb19d138aa45e78a9dfb3caa7c1b4d24b04ede13ce9e42fde52c4922c9

Contents?: true

Size: 909 Bytes

Versions: 52

Compression:

Stored size: 909 Bytes

Contents

<?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>def create
	@${1:model} = ${2:${1/[[:alpha:]]+|(_)/(?1::\u$0)/g}}.new(params[:$1])
	$0
	respond_to do |wants|
		if @$1.save
			flash[:notice] = '$2 was successfully created.'
			wants.html { redirect_to(@$1) }
			wants.xml { render :xml =&gt; @$1, :status =&gt; :created, :location =&gt; @$1 }
		else
			wants.html { render :action =&gt; "new" }
			wants.xml { render :xml =&gt; @$1.errors, :status =&gt; :unprocessable_entity }
		end
	end
end
</string>
	<key>name</key>
	<string>def create - resource</string>
	<key>scope</key>
	<string>meta.rails.controller</string>
	<key>tabTrigger</key>
	<string>defcreate</string>
	<key>uuid</key>
	<string>54F61419-001F-4B71-83AC-8DC633694AF0</string>
</dict>
</plist>

Version data entries

52 entries across 44 versions & 3 rubygems

Version Path
redcar-bundles-0.3 Bundles/Ruby on Rails.tmbundle/Snippets/def_create____resource.tmSnippet
redcar-bundles-0.2-java Bundles/Ruby on Rails.tmbundle/Snippets/def_create____resource.tmSnippet
redcar-bundles-0.1-java Bundles/Ruby on Rails.tmbundle/Snippets/def_create____resource.tmSnippet
redcar-dev-0.12.1dev-java plugins/textmate/vendor/redcar-bundles/Bundles/Ruby on Rails.tmbundle/Snippets/def_create____resource.tmSnippet
redcar-dev-0.12.0dev-java plugins/textmate/vendor/redcar-bundles/Bundles/Ruby on Rails.tmbundle/Snippets/def_create____resource.tmSnippet
redcar-0.11 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby on Rails.tmbundle/Snippets/def_create____resource.tmSnippet
redcar-0.11.0dev plugins/textmate/vendor/redcar-bundles/Bundles/Ruby on Rails.tmbundle/Snippets/def_create____resource.tmSnippet
redcar-0.10 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby on Rails.tmbundle/Snippets/def_create____resource.tmSnippet
redcar-0.9.2 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby on Rails.tmbundle/Snippets/def_create____resource.tmSnippet
redcar-0.9.1 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby on Rails.tmbundle/Snippets/def_create____resource.tmSnippet
redcar-0.9.0 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby on Rails.tmbundle/Snippets/def_create____resource.tmSnippet
redcar-0.8.1 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby on Rails.tmbundle/Snippets/def_create____resource.tmSnippet
redcar-0.8 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby on Rails.tmbundle/Snippets/def_create____resource.tmSnippet
redcar-0.7 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby on Rails.tmbundle/Snippets/def_create____resource.tmSnippet
redcar-0.6.1 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby on Rails.tmbundle/Snippets/def_create____resource.tmSnippet
redcar-0.6 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby on Rails.tmbundle/Snippets/def_create____resource.tmSnippet
redcar-0.6.1dev plugins/textmate/vendor/redcar-bundles/Bundles/Ruby on Rails.tmbundle/Snippets/def_create____resource.tmSnippet
redcar-0.5.1 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby on Rails.tmbundle/Snippets/def_create____resource.tmSnippet
redcar-0.5 plugins/textmate/vendor/redcar-bundles/Bundles/Ruby on Rails.tmbundle/Snippets/def_create____resource.tmSnippet
redcar-0.5.6dev plugins/textmate/vendor/redcar-bundles/Bundles/Ruby on Rails.tmbundle/Snippets/def_create____resource.tmSnippet