Skip to content

Commit

Permalink
add snippets for ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
kaochenlong committed Feb 14, 2013
1 parent 9ddd4c5 commit 7dfd294
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions snippets/ruby.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,11 @@ snippet aa
attr_accessible :${1}
snippet flash
flash[:${1:notice}] = "${2}"
snippet crud
def index${1}
end

def show
end

def new
end

def create
end

def edit
end

def update
end

def destroy
end
snippet init initializer
def initialize
${1}
end${2}
snippet init initialize with parameters
def initialize(${1:args})
@$1 = $1${2}
end${3}

0 comments on commit 7dfd294

Please sign in to comment.