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
$ -> | |
$("#update_stat").click -> alert search_data | |
$("#search_button").click -> | |
$.getJSON "http://localhost:3000/items/search?search_term=#{$('#search_term').val()}", (data) -> | |
$('#avg_price').append(data[1].item_id) | |
@search_data = data | |
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
%table | |
%tr | |
%td Item_ID | |
%td Title | |
- @items.each do |item| | |
%tr{id: "#{item.id}"} | |
%td= item.id | |
%td= item.title |
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
%h1 Listing items | |
= form_tag search_items_path, method: "get", remote: true do | |
= label_tag :search_term, "Search for:" | |
= text_field_tag :search_term | |
= submit_tag "Search" |
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
undefined method `model_name' for NilClass:Class | |
Extracted source (around line #14): | |
11: %td= link_to 'Show', item | |
12: %br | |
13: | |
14: = semantic_form_for @items do |f| | |
15: - f.inputs :title |
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
a = Audiofile.new | |
a.id = 109883 | |
b = Audiofile.new | |
b.id = 109884 | |
puts JSON.pretty_generate([a,b]) |
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
8490ea9d5536609099320b72c1cc4d0b server.js |
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 'rubygems' | |
require 'bundler/setup' | |
require 'sequel' | |
require 'logger' | |
require_relative 'lib/models/Item' |
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
/home/mark/ebay/config.rb:15:in `require_relative': no such file to load -- /home/mark/ebay/lib/models/Item (LoadError) | |
from /home/mark/ebay/config.rb:15:in `<top (required)>' | |
from <internal:lib/rubygems/custom_require>:29:in `require' | |
from <internal:lib/rubygems/custom_require>:29:in `require' | |
from ./ebay.rb:3:in `<main>' |
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
$( '#link_stop' ).attr('href','#'); | |
$( '#link_stop' ).click(function() { | |
$( "#invoices-form" ).dialog( "open" ); | |
}); |
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
$('#message_message_text').attr("id","message_message_text_old"); | |
$('#message_message_text_old').attr("name",""); | |
$('#message_message_text_old').hide(); |