Skip to content

Instantly share code, notes, and snippets.

View ryanstrandt's full-sized avatar

Ryan Strandt ryanstrandt

  • Eli Lilly
  • Indianapolis, IN
View GitHub Profile
@ryanstrandt
ryanstrandt / gist:1265405
Created October 5, 2011 19:27
sp pages css
/* ===========================================
PAGES
============================================== */
#pageBody {
width:900px;
-moz-border-radius:20px;-webkit-border-radius:20px;border-radius:20px;
-moz-box-shadow: inset 0 0 1px 3px #CCC;
-webkit-box-shadow: inset 0 0 1px 3px #CCC;
box-shadow: inset 0 0 1px 3px #CCC;
background:url('/images/stone.png') #ECECEC;
@ryanstrandt
ryanstrandt / gist:1265402
Created October 5, 2011 19:26
sp page html.erb
<section id="page" class="fabric">
<div id="pageBody">
<div class="container">
<div id="sideBar">
<%= raw @page.content_for(:side_body) %>
</div>
<div id="pageContent">
<%= raw @page.content_for(:body) %>
</div>
</div>
ActionView::TemplateError (You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.collect) on line #3 of app/views/news/_all_news.html.erb:
1: <div id="news">
2: <%= link_to_remote "Add News", :url => new_news_url, :with => "'filter='+$('#filter')[0].value", :method => :get, :loading => "$('#spinneraddnews').show();", :complete => "$('#spinneraddnews').hide();" %> <%= spinner("addnews") %>
3: <%= select_tag "filter", grouped_options_for_select([ [ "", [["Everything",""]] ], [ "Ministries", @ministries_with_news.collect{ |m| [ m.name, "m_#{m.id}" ] } ], [ "Groups", @groups_with_news.collect{ |m| [ m.name, "g_#{m.id}" ] } ] ], params[:filter])
4: %>
5: <%= observe_field :filter,
6: :function => %|document.location = "#{url_for(:controller => params[:controller], :action => params[:action])}?filter="+$('#filter')[0].value;|
development:
adapter: mysql
encoding: utf8
database: Avocado
username: ryans
password: J112Bitmtp
test:
adapter: mysql
encoding: utf8
# Sequel Pro dump
# Version 2492
# http://code.google.com/p/sequel-pro
#
# Host: 127.0.0.1 (MySQL 5.1.38-log)
# Database: MT
# Generation Time: 2010-08-11 11:14:00 -0400
# ************************************************************
# Dump of table addresses
glr-garyspohr-l:RedAvocado ryans$ script/server
=> Booting Mongrel
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
Git Branch Config: avocado -> /Users/ryans/Sites/_DEV/RedAvocado/config/branch_configs/us.rb
** [NewRelic] NewRelic Agent Developer Mode enabled.
** [NewRelic] To view performance information, go to http://localhost:3000/newrelic
** [NewRelic] New Relic RPM Agent 2.9.4 Initialized: pid = 9274
** [NewRelic] Agent Log found in /Users/ryans/Sites/_DEV/RedAvocado/log/newrelic_agent.log
ps: rsz: keyword not found
ps: no valid keywords; valid keywords:
Loading development environment (Rails 2.3.5)
Git Branch Config: avocado -> /Users/ryans/Sites/_DEV/RedAvocado/config/branch_configs/us.rb
defaults: &defaults
adapter: mysql
database: Avocado
username: ryans
password: J112Bitmtp
host: localhost
rvm:
type: "rvm is a function"
version: "rvm 0.1.28 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/]"
ruby:
interpreter: "ruby"
version: "1.9.1p378"
date: "2010-01-10"
platform: "i386-darwin10.3.0"
patchlevel: "2010-01-10 revision 26273"
#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.2/ for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# GL Staff site
# domain: staff.glccc.org
# public: /home/gladmin/public_html/staff.glccc.org/public/
<VirtualHost *:80>
# Admin email, Server Name (domain name) and any aliases
ServerAdmin [email protected]
ServerName staff.glccc.org