Skip to content

Instantly share code, notes, and snippets.

<ul>
<% @blog_posts.each do |blog_post| %>
<li>
<%= link_to blog_post.title, "##{blog_post.to_param}", :class => cycle("even", "odd") %>
</li>
<% end %>
</ul>
<script type="text/javascript" src="http://w.sharethis.com/button/sharethis.js#publisher=a266c608-0418-49e7-aae5-f268b5b0b404&amp;type=website"></script>
# This defines a deployment "recipe" that you can feed to switchtower
# (http://manuals.rubyonrails.com/read/book/17). It allows you to automate
# (among other things) the deployment of your application.
# =============================================================================
# REQUIRED VARIABLES
# =============================================================================
# You must always specify the application and repository for every recipe. The
# repository must be the URL of the repository you want this recipe to
# correspond to. The deploy_to path must be the path on each machine that will
triggering start callbacks for `production'
Identity added: /Users/noah/.ssh/id_rsa (/Users/noah/.ssh/id_rsa)
* executing `production'
triggering start callbacks for `deploy'
* executing `multistage:ensure'
Identity added: /Users/noah/.ssh/id_rsa (/Users/noah/.ssh/id_rsa)
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
x* Test that email notifications from staging/production are working.
# Groups
x* Site admin's should be able to see all groups & be omnipotent (D)
# Email Notifications:
x* Link directly to a message in the site
x* Preview who the message is from & first few lines of message (D)
# Messages (N)
function showCategory(){ $(this).find("span").animate({top:"0px"}, 200); }
function hideCateogry() { $(this).find("span").animate({top:"30px"}, 200); }
function loadContent(content) { moveAboveTop(); $('#content').load(content,'',showNewContent()); }
function showNewContent() { $('#content').show('normal'); }
function setWindowLocationHash(url) { window.location.hash = url.substr(0,url.length-5); }
function moveAboveTop() {
if ( window.location.hash.length > 0 ){
class Test::Unit::TestCase
def self.should_be_denied
should "have error message to login" do
assert_contain "You must be logged in"
end
should "redirect to login" do
assert_equal login_url, current_url
end
end
class ShopifyCollection
require 'feedzirra'
require 'hpricot'
BASE_URI = "http://shop.thepostfamily.com/collections/"
def initialize(url)
@feed = Feedzirra::Feed.fetch_and_parse(BASE_URI + url + ".atom")
@entries = @feed.entries
end
/opt/ruby-enterprise-1.8.6-20081205/bin/ruby -I"lib:test" "/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/account_test.rb" "test/unit/address_test.rb" "test/unit/attachment_test.rb" "test/unit/blog_post_test.rb" "test/unit/category_test.rb" "test/unit/helpers/admin/lawyers_helper_test.rb" "test/unit/lawyer_test.rb" "test/unit/news_item_test.rb" "test/unit/office_test.rb" "test/unit/page_test.rb" "test/unit/practice_area_test.rb" "test/unit/user_test.rb"
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/gems/1.8/gems/nokogiri-1.4.0/lib/nokogiri/xml/builder.rb:272: warning: parenthesize argument(s) for future version
[DEPRECATION] should_change(expression, options) is deprecated. Use should_change(description, options) { code } instead.
[DEPRECATION] should_change(expression, options) is deprecated. Use should_change(description, options) { code } instead.
[DEPRECATION] should_not_change(expression) is deprecated. Use should_not_change(description) { c
(in /usr/local/projects/law-mo-tron)
** Invoke default (first_time)
** Invoke test (first_time)
** Execute test
** Invoke test:units (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:abort_if_pending_migrations