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
<div class="livesearch_container"> | |
<table class="livesearch_results"> | |
<% unless search.blank? %> | |
<% search.each_with_index do |item,i| %> | |
<% pos ||= '' %> | |
<% if (i == 0) then pos = 'first' end %> | |
<% if (i == search.size - 1) then pos += ' last' end %> | |
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
#lib/active_record_extension.rb | |
module ActiveRecordExtension #-> http://stackoverflow.com/questions/2328984/rails-extending-activerecordbase | |
extend ActiveSupport::Concern | |
included do | |
class_attribute :store_base_sti_class | |
self.store_base_sti_class = true | |
end | |
end |
NewerOlder