This file contains 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
class User < ActiveRecord::Base | |
# new columns need to be added here to be writable through mass assignment | |
attr_accessible :username, :email, :password, :password_confirmation | |
attr_accessor :password | |
before_save :prepare_password | |
validates_presence_of :email | |
validates_uniqueness_of :username, :email, :allow_blank => true |
This file contains 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
{ | |
"history":[ | |
[ | |
1335225600000, | |
987.5 | |
], | |
[ | |
1335312000000, | |
987.5 | |
], |
This file contains 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
{ | |
"products":[ | |
{ | |
"priceNew":1494.44, | |
"title":"Canon 7D Body only New", | |
"prices":[ | |
[ | |
1335225600000, | |
1518.95 | |
], |
This file contains 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
[ | |
{ | |
"id":18605663, | |
"oldPrice":17.24, | |
"title":"Okami", | |
"price":19.98, | |
"merchant":"Amazon.com", | |
"direction":1, | |
"image":"http://file.shopobot.com/products/videogames/nintendo-wii/okami-1-90.jpg", | |
"date":1337788745000, |
This file contains 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
<input id='query_example'> | |
<div id='results_box'> | |
<ul id='query_results'> | |
</ul> | |
</div> | |
<script> | |
$(document).ready(function(){ | |
$('#query_example').keyup(function(){ | |
var limit = 5; |
NewerOlder