Skip to content

Instantly share code, notes, and snippets.

View levicole's full-sized avatar

Levi Cole levicole

  • Kolide
  • Nashville, TN
View GitHub Profile
def search
@artists = Artist.find_all_by_festival_id(@festival.id, :conditions => ["name LIKE ?", "%#{params[:q]}%"])
respond_to do |wants|
wants.js { render :json => @artists }
end
end
puts "Hello world, I am testing out posting to gist from vim"
require 'hotcocoa'
include HotCocoa
application do |app|
# setting up our window with
window :size => [150, 50] do |win|
# now lets set up our layout
win.view = layout_view :mode => :horizontal do |layout|
layout.spacing = 5
# make a button
b = button(:title => 'Hi!', :layout => { :align => :center})
<%= form :action => resource(:uploads) do %>
<%= file_field :name => "file", :label => "file" %><br />
<%= submit "send" %>
<% end =%>
/usr/local/lib/ruby/gems/1.8/gems/sproutcore-0.9.19/lib/sproutcore/library.rb:378:in `load_environment!': (eval):88:in `load_environment!': compile error (SyntaxError)
(eval):19: syntax error, unexpected ']', expecting kEND
from /usr/local/lib/ruby/gems/1.8/gems/sproutcore-0.9.19/lib/sproutcore/library.rb:366:in `eval'
from /usr/local/lib/ruby/gems/1.8/gems/sproutcore-0.9.19/lib/sproutcore/library.rb:378:in `load_environment!'
from /usr/local/lib/ruby/gems/1.8/gems/sproutcore-0.9.19/lib/sproutcore/library.rb:366:in `initialize'
from /usr/local/lib/ruby/gems/1.8/gems/sproutcore-0.9.19/lib/sproutcore/library.rb:37:in `new'
from /usr/local/lib/ruby/gems/1.8/gems/sproutcore-0.9.19/lib/sproutcore/library.rb:37:in `library_for'
from /usr/local/lib/ruby/gems/1.8/gems/sproutcore-0.9.19/lib/sproutcore.rb:11:in `library'
from /usr/local/lib/ruby/gems/1.8/gems/sproutcore-0.9.19/bin/sc-server:41
from /usr/local/bin/sc-server:19:in `load'