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
server { | |
listen 80; | |
server_name .karastanonthego.com; | |
root /data/dealer_ignition/current/public/karastan-on-the-go; | |
access_log /var/log/engineyard/nginx/karastan_on_the_go.access.log main; | |
error_log /var/log/engineyard/nginx/karastan_on_the_go.error.log notice; |
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 FalseClass | |
def affirmative? | |
false | |
end | |
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
easy_money :amount | |
easy_money :amount, :units => "dollars", :unit => "$" |
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
deploy@domU-12-31-38-00-04-E1 /data/clark_realty/current $ sudo indexer mls_listing_core --config /data/clark_realty/current/config/sphinx/production.sphinx.conf --rotate --verbose --dump-rows | |
Sphinx 0.9.9-release (r2117) | |
Copyright (c) 2001-2009, Andrew Aksyonoff | |
using config file '/data/clark_realty/current/config/sphinx/production.sphinx.conf'... | |
indexing index 'mls_listing_core'... | |
collected 165448 docs, 70.6 MB | |
collected 166065 attr values | |
sorted 0.3 Mvalues, 100.0% done | |
sorted 326.9 Mhits, 97.1% done |
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
module ApplicationHelper | |
def link_to_pivotal(link_text, story_number, attributes = {}, &block) | |
default_attributes = { | |
:confirm => "Not yet implemented. Click OK to view Pivotal story or Cancel to stay on this page." } | |
link_to( | |
link_text, | |
"https://www.pivotaltracker.com/story/show/#{story_number}", | |
default_attributes.merge(attributes), | |
&block ) |
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
- form_tag management_amazon_simple_pay_transactions_path, :method => "get" do | |
- request.query_parameters.without("date").each do |key, value| | |
= hidden_field_tag key, value |
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
%li | |
= check_box_tag('color_category_names[]', row.value, params['color_category_names'] && params['color_category_names'].include?(row.value)) | |
%label{ :for => "color_category_names_#{row.value}" } | |
== #{row.value} | |
%span.tonys-class | |
== (#{row.count}) |
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
--- | |
:benchmark: false | |
gem: --no-rdoc --no-ri | |
:update_sources: true | |
:backtrace: false | |
:bulk_threshold: 1000 | |
:verbose: true | |
:sources: | |
- http://gems.rubyforge.org | |
- http://gems.github.com/ |
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
select | |
'FundPledge' as pledge_type, | |
fund_pledges.id as pledge_id, | |
fund_pledges.created_at, | |
coalesce(sum(fund_collections.amount), 0) >= fund_pledges.amount as completed | |
from | |
fund_pledges | |
left join | |
fund_collections on fund_pledges.id = fund_collections.fund_pledge_id and fund_collections.paid = 1 | |
group by |
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
def create | |
@article = @publication.news.build params[:article] | |
@article.person = current_person | |
if @article.save | |
flash[:notice] = "Article was saved" | |
respond_to do |format| | |
format.html { redirect_to management_article_path(@parish, @publication, @article) } | |
format.xml { render :show, :status => :created, :location => management_article_path(@parish, @publication, @article, :format => :xml) } | |
end |