Skip to content

Instantly share code, notes, and snippets.

View gabewb's full-sized avatar

Gabriel Warshauer-Baker gabewb

View GitHub Profile
<% form_tag('/create') do %>
<% label :title %>:
<% text_field :title %><br />
<% label :price %>
<% text_field :price %><br />
<% submit %>
<% end %>
#undefined method `nil_class_path' for
<% form_for :action =>'create' do |f| %>
<p><label for="game_title">Title:</label>
<%= f.text_field 'game', 'title' %></p>
<p><label for="game_price">Price:</label>
<%= f.text_field 'game', 'price' %><br />
class GameController < ApplicationController
def list
@games = Game.find(:all)
end
def show
@game = Game.find(params[:id])
end
def new
Gabriel-Warshauer-Bakers-MacBook-Pro:editor-plugin-chrome gabewb$ rake
(in /Users/gabewb/grabeco/editor-plugin-chrome)
Rebuilt extension!
rake aborted!
Command failed with status (127): [jspec run -R...]
/Users/gabewb/grabeco/editor-plugin-chrome/rakefile:87
(See full trace by running task with --trace)
<script type="text/javascript">
function TutorialTab_Config(T) {
T.setWebsiteId( 30 );
}
</script>
<script type="text/javascript" src="http://alpha-cdn.tutorialtab.com/core/tutorialtab.js"></script>
Gabriel-Warshauer-Bakers-MacBook-Pro:~ gabewb$ sudo gem install memcached Building native extensions. This could take a while...
ERROR: Error installing memcached:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
Building libmemcached.
tar xzf libmemcached-0.32.tar.gz 2>&1
Patching libmemcached source.
patch -p1 -Z < libmemcached.patch
patching file libmemcached-0.32/libmemcached/memcached_response.c
:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
Missing these required gems:
...
$ brew doctor
Your system is ready to brew.
$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/mxcl/homebrew
HEAD: c29f75f44cccb5a76d371397cf30977d4a3f5946
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit ivybridge
$ brew doctor
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
python3
$ brew link python3
Linking /usr/local/Cellar/python3/3.3.2... 0 symlinks created
$ brew uninstall python3
Uninstalling /usr/local/Cellar/python3/3.3.2...