Skip to content

Instantly share code, notes, and snippets.

Moonshine::Application.routes.draw do
# Administration
match 'admin/automobiles/get_makes_for_year' => 'admin/automobiles#get_makes_for_year'
match 'admin/automobiles/get_models_for_make_and_year' => 'admin/automobiles#get_models_for_make_and_year'
namespace "admin" do
resources :automobiles
end
end
var people = {
brian: "Brian Wigginton",
denny: "Denny Cunningham"
};
var name = "brian";
alert(people.name);
// would alert "Brian Wigginton"
desc %{ Renders the contained block if online ordering is true}
tag 'location:ordering' do |tag|
location = tag.locals.location
if location.phone && %w(713 281 972 214 469 817).detect { |area_code| location.phone.start_with? area_code}
tag.expand
elsif location.title && (location.title == "San Jacinto" || location.title == "Preston Forest")
tag.expand
end
end