This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| puts "Hello world, I am testing out posting to gist from vim" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%= form :action => resource(:uploads) do %> | |
| <%= file_field :name => "file", :label => "file" %><br /> | |
| <%= submit "send" %> | |
| <% end =%> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /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' |
NewerOlder