Skip to content

Instantly share code, notes, and snippets.

View aamax's full-sized avatar

Allen Maxwell aamax

  • aaMaxWorks Engineering, LLC
  • Draper, Utah USA
View GitHub Profile
@aamax
aamax / minitest output
Created September 19, 2013 00:49
minitest not running My tests were working ok yesterday - been working on expanding them. all of a sudden, when i run them I get the following results. any idea what I've done? not sure what other info would be needed.
$ rake minitest:all
NOTICE: CREATE TABLE will create implicit sequence "roles_id_seq" for serial column "roles.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "roles_pkey" for table "roles"
NOTICE: CREATE TABLE will create implicit sequence "shift_types_id_seq" for serial column "shift_types.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "shift_types_pkey" for table "shift_types"
NOTICE: CREATE TABLE will create implicit sequence "shifts_id_seq" for serial column "shifts.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "shifts_pkey" for table "shifts"
NOTICE: CREATE TABLE will create implicit sequence "sys_configs_id_seq" for serial column "sys_configs.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "sys_configs_pkey" for table "sys_configs"
NOTICE: CREATE TABLE will create implicit sequence "users_id_seq" for serial column "users.id"
def edit
@publication = Publication.find(params[:id])
@recipients = @publication.users
@users = User.first
end
@aamax
aamax / controller snippet
Created September 12, 2013 19:32
Rails: multi select control with multiple items pre selected
def edit
@publication = Publication.find(params[:id])
@recipients = @publication.users
end
@aamax
aamax / application.rb
Created August 24, 2013 04:09
bootstrap menu expanding under page contents when page is small (responsive design issue) not sure why but if i make the page small and then click on the button that accesses the collapsed menu, the menu expands but does not push the page contents down, it just renders below the existing page contents.
<!DOCTYPE html>
<html ng-app="mthosts">
<head>
<title>mysite<%= @title.nil? ? "" : " | #{@title}" %></title>
<%= stylesheet_link_tag "application", :media => "all" %>
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com//twitter-bootstrap/2.3.1/css/bootstrap-responsive.min.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
rails new ptsspree20_static_test
cd ptsspree20_static_test
echo "ruby-1.9.3" >.ruby-version
echo "ptsspree20_static_test" >.ruby-gemset
rvm gemset delete ptsspree20_static_test
rvm gemset create ptsspree20_static_test
rvm gemset use ptsspree20_static_test
echo "gem 'spree', '2.0.0'" >> Gemfile