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
/* for browsers supporting localStorage */ | |
.localstorage p { | |
color:blue; | |
} | |
/* for browsers not supporting localStorage */ | |
.no-localstorage p { | |
color:red; | |
} |
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
if (Modernizr.localstorage) { | |
localStorage.setValue('my_key','my_value') | |
} else { | |
document.cookie = 'my_key=my_value; expires=Thu, 2 Aug 2011 21:40:00 UTC; path=/' | |
} |
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
<html class="js canvas canvastext no-geolocation rgba hsla multiplebgs | |
borderimage borderradius boxshadow opacity cssanimations csscolumns | |
cssgradients cssreflections csstransforms csstransforms3d | |
csstransitions video audio localstorage sessionstorage webworkers | |
applicationcache fontface"> |
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
ruby script/plugin install http://svn.liverail.net/svn/plugins/railsdav |
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 Book < ActiveRecord::Base | |
has_many :user_books | |
has_many :users, :through => :user_books | |
end | |
class UserBook < ActiveRecord::Base | |
belongs_to :book | |
belongs_to :user | |
end |
NewerOlder