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
<ul id="blog_months"> | |
<% @months.each_with_index do |month, index| %> | |
<li class="<%= monthly_post_list_class(month) %>"> | |
<div class="outer_month_border"> | |
<div class="monthly_posts <%= cycle("light_outer", "dark_outer")%>"> | |
<div class="monthly_posts_inner_bar <%= cycle("light_inner", "dark_inner")%>" style="height: <%= month_percentage_calculator(index) %>%"></div> | |
</div> | |
</div> | |
<%= content_tag :h5, link_to(month, articles_path(:month => (index+1))), :class => todays_month(index) %> | |
</li> |
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
// application.js | |
$(function(){ | |
$('body').removeClass('js-disabled').addClass('js-enabled'); | |
$('#i_like_this').incrementILikeCount(); | |
}); | |
$.fn.incrementILikeCount = function() { | |
return this.each(function(){ | |
var linkAction = $(this).attr('href') |
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
$(function(){ | |
$('body').removeClass('js-disabled').addClass('js-enabled'); | |
$('#quotes').flashQuotes(); | |
}); | |
$.fn.flashQuotes = function(){ | |
return this.each(function(){ | |
var quotes = $('>li',this); |
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
<ul id="quotes"> | |
<li class="showing"> | |
<blockquote> | |
<p>“…very professional, providing us with support and guidance throughout”</p> | |
<p><cite><img src="some_image.gif" alt="Company X" /></cite></p> | |
</blockquote> | |
</li> | |
<li> | |
<blockquote> | |
<p>“Simply brilliant”</p> |
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
# Thinking Sphinx Rake Tasks | |
rake thinking_sphinx:start | |
rake thinking_sphinx:stop | |
rake thinking_sphinx:restart | |
rake thinking_sphinx:index | |
# Models | |
class Article < ActiveRecord::Base | |
define_index do |
NewerOlder