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
= f.simple_fields_for :inputs do |input| | |
= render 'input_fields', f: input | |
.links | |
= link_to_add_association f, :inputs, partial: 'input_fields', force_non_association_create: true do | |
Add |
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
import React from "react"; | |
import { render } from "react-dom"; | |
const ParentComponent = React.createClass({ | |
getDefaultProps: function() { | |
console.log("ParentComponent - getDefaultProps"); | |
}, | |
getInitialState: function() { | |
console.log("ParentComponent - getInitialState"); | |
return { text: "" }; |
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
#!/usr/bin/ruby | |
# scrivwatch.rb by Brett Terpstra, 2011 | |
# Modifications to merge into one file for Markdown viewing in Marked by BooneJS, 2012 | |
# Modified to use REXML and add titles by Brett Terpstra, 2012 <https://gist.github.com/1676667> | |
# | |
# Watch a Scrivener project for changes and update a preview file for Marked | |
# Usage: scrivwatch.rb /path/to/document.scriv | |
# <http://markedapp.com> | |
require 'fileutils' |