curl -O https://raw.github.com/gist/1258077/9fd0955cc10c4d91da208fd1015b673377049940/kansas
mv kansas /usr/local/bin
sudo chmod +x /usr/local/bin/kansas
| class UsersProjects | |
| include Mongoid::Document | |
| field :user_id | |
| field :project_ids, :type => :array | |
| belongs_to :user | |
| belongs_to :project | |
| end | |
| def set_published_at | |
| if self.published == true and self.published_at.nil? == true | |
| self.published_at = Time.now | |
| elsif self.published == false | |
| self.published_at = nil | |
| elsif self.published == true and self.published_at.nil? == false | |
| self.published_at = published_at | |
| end | |
| end |
| Sprockets::Environment#path is deprecated | |
| /Users/brady/.rvm/gems/ruby-1.9.3-preview1/gems/actionpack-3.1.0.rc6/lib/sprockets/helpers/rails_helper.rb:119:in `rewrite_asset_path' | |
| /Users/brady/.rvm/gems/ruby-1.9.3-preview1/gems/actionpack-3.1.0.rc6/lib/action_view/asset_paths.rb:29:in `compute_public_path' | |
| /Users/brady/.rvm/gems/ruby-1.9.3-preview1/gems/actionpack-3.1.0.rc6/lib/sprockets/helpers/rails_helper.rb:100:in `compute_public_path' | |
| /Users/brady/.rvm/gems/ruby-1.9.3-preview1/gems/actionpack-3.1.0.rc6/lib/sprockets/helpers/rails_helper.rb:67:in `asset_path' | |
| /Users/brady/.rvm/gems/ruby-1.9.3-preview1/gems/actionpack-3.1.0.rc6/lib/sprockets/helpers/rails_helper.rb:57:in `block in stylesheet_link_tag' | |
| /Users/brady/.rvm/gems/ruby-1.9.3-preview1/gems/actionpack-3.1.0.rc6/lib/sprockets/helpers/rails_helper.rb:47:in `collect' | |
| /Users/brady/.rvm/gems/ruby-1.9.3-preview1/gems/actionpack-3.1.0.rc6/lib/sprockets/helpers/rails_helper.rb:47:in `stylesheet_link_tag' | |
| /Users/brady/Development/report_a_day/app/views/layouts |
| Rails project ideas | |
| 1. Recipe App | |
| 2. Daily Report App | |
| 3. Guild/Clan app |
| #!/usr/bin/env bash | |
| # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional. | |
| environment_id="ruby-1.9.2-p290@vroom" | |
| # | |
| # First we attempt to load the desired environment directly from the environment | |
| # file, this is very fast and efficicent compared to running through the entire | |
| # CLI and selector. If you want feedback on which environment was used then | |
| # insert the word 'use' after --create as this triggers verbose mode. |
| class ApplicationController < ActionController::Base | |
| # force_ssl | |
| protect_from_forgery | |
| helper_method :current_user | |
| def signed_in | |
| @signed_in = true unless session[:user_id] == nil | |
| end |
| require 'rake' | |
| task :install do | |
| # Plugins | |
| clone "https://github.com/squil/vim_colors.git", "colors" | |
| clone "https://github.com/scrooloose/nerdtree.git", "nerdtree" | |
| clone "https://github.com/tpope/vim-rails.git", "rails" | |
| clone "https://github.com/vim-scripts/The-NERD-Commenter.git", "nerd-commenter" | |
| clone "https://github.com/tpope/vim-rake.git", "rake" | |
| clone "https://github.com/shemerey/vim-peepopen.git", "peepopen" |
| .well | |
| = form_for @recipe do |f| | |
| -if @recipe.errors.any? | |
| .errorExplanation | |
| = pluralize(@recipe.errors.count, "error") | |
| prohibited you from creating the recipe. | |
| %ul | |
| - @recipe.errors.full_messages.each do |msg| | |
| %li | |
| = msg |
| body of gist but patched, patched with Mac Gist |