Skip to content

Instantly share code, notes, and snippets.

@ryanwood
Created May 23, 2012 13:28
Show Gist options
  • Save ryanwood/2775235 to your computer and use it in GitHub Desktop.
Save ryanwood/2775235 to your computer and use it in GitHub Desktop.

Revisions

  1. ryanwood created this gist May 23, 2012.
    28 changes: 28 additions & 0 deletions Gemfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    ...

    group :assets do
    gem 'sass-rails', '~> 3.2.3'
    gem 'coffee-rails', '~> 3.2.1'
    gem 'uglifier', '>= 1.0.3'
    gem 'skim'
    end

    gem 'jquery-rails'
    gem 'devise'
    gem 'slim'
    gem 'responders'
    gem 'cancan'
    gem 'simple_form', git: 'https://github.com/plataformatec/simple_form.git'
    gem 'will_paginate', '~> 3.0.2'
    gem 'settingslogic'
    gem 'paperclip'
    gem 'carmen'
    gem 'heroku'
    gem 'airbrake'
    gem 'fog', '~> 1.1.2'
    # Sidekiq related gems:
    gem 'sidekiq'
    gem 'sinatra'
    gem 'stripe'
    gem 'backbone-on-rails'
    ...
    14 changes: 14 additions & 0 deletions forms.js.coffee
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    # app/assets/javascripts/forms.js.coffee
    jQuery ->

    class FormsView extends Backbone.View
    el: $('#forms')

    initialize: ->
    _.bindAll @
    @render()

    render: ->
    $(@el).append( JST['forms/index'] { word: 'Test' } )

    listView = new FormsView
    2 changes: 2 additions & 0 deletions index.jst.skim
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    # app/assets/templates/forms/index.jst.skim
    p This is from <strong>Skim</strong>. #{ @word }