Skip to content

Instantly share code, notes, and snippets.

View thomasnaude's full-sized avatar

Thomas Naude thomasnaude

View GitHub Profile
Rails.application.routes.draw do
resources :restaurants do
collection do
get 'top', to: 'restaurants#top'
end
member do
get 'chef', to: 'restaurants#chef'
end
resources :reviews, shallow: :true
end
@thomasnaude
thomasnaude / application.css
Last active May 4, 2017 17:43
HTTP & AJAX - clearbit
#response {
margin-top: 30px;
margin-bottom: 30px;
}
img {
width: 64px;
float: right;
margin-top: -32px;
margin-right: -32px;