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
<?xml version="1.0"?> | |
<settings xmlns="http://giftfold.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://giftfold.com/giftfold_theme_settings.xsd"> | |
<form> | |
<customization> | |
<name>fund</name> | |
<type>string</type> | |
<value>Disaster Relief</value> | |
</customization> | |
</form> | |
<theme> |
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
<!DOCTYPE HTML> | |
<html lang="en"> | |
<head> | |
<meta charset=utf-8> | |
<title>{{ page_title }}</title> | |
<link rel="shortcut icon" href="{{ 'favicon.ico' | asset_url }}" > | |
{% csrf %} | |
<meta name="robots" content="noindex, nofollow" /> | |
<link href="{{ 'style.css' | asset_url }}" rel="stylesheet" media="screen" /> |
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
# spec/support/controllers_helper.rb | |
module ControllersHelper | |
# Since FactoryGirl.attributes_for excludes associations, use FactoryGirl.build and then | |
# strip out the protected attributes. | |
def build_attributes(*args) | |
build_object = FactoryGirl.build(*args) | |
build_object.attributes.slice(*build_object.class.accessible_attributes).symbolize_keys | |
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
# SimpleForm (https://github.com/plataformatec/simple_form) | |
# jQuery Tokenninput (http://loopj.com/jquery-tokeninput/) | |
class TokenInput < SimpleForm::Inputs::Base | |
def input | |
input_html_options[:"data-url"] = "/#{reflection.klass.name.tableize}.json" | |
if @builder.object.send(reflection.name).nil? | |
if input_html_options[:value] | |
object = reflection.klass.find(input_html_options[:value]) | |
end | |
else |