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
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:
# 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
development:
adapter: mysql
encoding: utf8
database: Avocado
username: ryans
password: J112Bitmtp
test:
adapter: mysql
encoding: utf8
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;|
@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>
@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;