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
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 |
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
var people = { | |
brian: "Brian Wigginton", | |
denny: "Denny Cunningham" | |
}; | |
var name = "brian"; | |
alert(people.name); | |
// would alert "Brian Wigginton" | |
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
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 |
NewerOlder