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
.inner | |
.alert-message.warning | |
Your account has now been activated! Be sure to set your password below. | |
= simple_form_for [:admin, @user] do |f| | |
%fieldset | |
.clearfix | |
.input | |
= f.input :email | |
.clearfix | |
.input |
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 StaticPagesController < ApplicationController | |
def info | |
@favorite_links = Link.where(:favourite => true) | |
@links = Link.where(:favourite => false) | |
render 'info' | |
end | |
def contact | |
if request.subdomain.present? | |
@section = User.where(:role_ids == Role.find_by_name(request.subdomain).id) |
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
- for section in @sections | |
.contact-section | |
- if section.present? | |
- section.each do |user| | |
.contact-card | |
.photo | |
= image_tag user.avatar | |
.contact-details | |
%h3= "#{user.title} #{user.full_name}" | |
.contact-email |
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
HarleyHealthVip::Application.routes.draw do | |
resources :faqs | |
resources :notices, :only => [:index, :show] | |
# events routes | |
get 'events' => 'events#index', :as => 'events' | |
get 'events/:id' => 'events#show', :as => 'event' |
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
HarleyHealthVip::Application.routes.draw do | |
get 'faqs' => 'faqs#index', :as => 'faqs' | |
resources :notices, :only => [:index, :show] | |
# events routes | |
get 'events' => 'events#index', :as => 'events' | |
get 'events/:id' => 'events#show', :as => 'event' |
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
Processing by Chargify::HooksController#dispatch_handler as XML | |
Parameters: {"payload"=>{"chargify"=>"testing"}, "event"=>"test"} | |
Completed 500 Internal Server Error in 2ms | |
NameError (uninitialized constant Chargify::HooksController::MD5): | |
app/controllers/chargify/hooks_controller.rb:74:in `verify' |
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
# wrap_alias takes three arguments: | |
# $1: The name of the alias | |
# $2: The command used in the alias | |
# $3: The arguments in the alias all in one string | |
# Generate a wrapper completion function (completer) for an alias | |
# based on the command and the given arguments, if there is a | |
# completer for the command, and set the wrapper as the completer for | |
# the alias. | |
function wrap_alias() { | |
[[ "$#" == 3 ]] || return 1 |
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
$.fn.initSlickSlider = function(options){ | |
var goToMargin; | |
// #TODO modulate slide function for fade only! | |
// set default options | |
var settings = jQuery.extend({ | |
transitionDuration: 300, fade: true | |
}, options); |
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
// Mixins and variables | |
@import "partials/base"; | |
// Partials | |
@import "partials/reset"; | |
@import "partials/typography"; | |
@import "partials/buttons"; | |
@import "partials/grid"; | |
@import "partials/layout/header"; | |
@import "partials/layout/article"; |
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
body { | |
background-color: grey; | |
header { | |
width: 960px; | |
.logo { | |
border: 1px solid white; | |
} | |
} |