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
| import React, { PropTypes } from 'react'; | |
| import { connect } from 'react-redux'; | |
| import MenuItem from 'material-ui/MenuItem'; | |
| import TextField from 'material-ui/TextField'; | |
| import Checkbox from 'material-ui/Checkbox'; | |
| import SelectField from 'material-ui/SelectField'; | |
| import RaisedButton from 'material-ui/RaisedButton'; |
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
| import React, { PropTypes } from 'react'; | |
| import { Field, reduxForm } from 'redux-form'; | |
| import TextField from 'material-ui/TextField'; | |
| import Checkbox from 'material-ui/Checkbox'; | |
| import RaisedButton from 'material-ui/RaisedButton'; | |
| import RailsForm from '../RailsForm/RailsForm'; | |
| const validate = values => { | |
| const errors = {} | |
| const requiredFields = ['user[email]', 'password'] | |
| requiredFields.forEach(field => { |
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
| grunt.initConfig | |
| pkg: grunt.file.readJSON('package.json') | |
| yeoman: | |
| client: require('./bower.json').appPath or 'client' | |
| dist: 'dist' | |
| exec: | |
| j2c: | |
| cmd: './j2c.sh' | |
| express: | |
| options: |
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
| class Image < ActiveRecord::Base | |
| has_secure_token :uuid, key_length: 48 | |
| belongs_to :event | |
| belongs_to :user | |
| has_attached_file :image, | |
| :styles => { :medium => "400x400>", :thumb => "200x200>" }, | |
| :default_url => "/images/:style/missing.png" |