Skip to content

Instantly share code, notes, and snippets.

View clarkware's full-sized avatar

Mike Clark clarkware

View GitHub Profile
<!-- layout file -->
<% if current_user %>
Welcome <%= current_user.username %>. Not you? <%= link_to "Log out", logout_path %>
<% else %>
<%= link_to "Sign up", signup_path %> or <%= link_to "log in", login_path %>.
<% end %>
$ rvm ruby-1.9.2-p136@ingredients
$ gem list
animalcracker (0.0.2)
bacon (1.1.0)
beet (0.6.9)
berry (0.0.0)
breadcrumbs (0.1.5)
butternut (0.2.1)
#
# Quick hack to map an iOS app's Core Data managed SQLite database into ActiveRecord
#
class CoreDataBase < ActiveRecord::Base
self.abstract_class = true
set_primary_key "Z_PK"
# Map all ZXXX attributes to XXX
class EventsController < ApplicationController
def create
@event = Event.new(params[:event])
if @event.save
flash[:notice] = 'Event was successfully created.'
redirect_to :action => :index
else
render :action => :new
end
1.66 GHz Intel Core Duo
1GB DDR2 SDRAM
80GB hard drive
Intel GMA950 graphics processor w/ 64MB memory
SuperDrive
1 FireWire 400 port
4 USB 2.0 ports
Ethernet and Airport
Apple Remote
Clean Leopard install