{
"errors": {
"user": {
"starting_stage_id": [
"Invalid"
],
"checklist_id": [
"can't be blank"
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
# In genenal | |
# my_app/config/environments/development.rb | |
Rails.application.configure do | |
# Settings specified here will take precedence over those in config/application.rb. | |
# In the development environment your application's code is reloaded on | |
# every request. This slows down response time but is perfect for development | |
# since you don't have to restart the web server when you make code changes. | |
config.cache_classes = false | |
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
# rails (4.2.0), devise (3.5.1) | |
# in config/environments/staging.rb | |
config.action_mailer.default_url_options = { host: ENV['HOSTNAME'] } | |
Rails.application.routes.default_url_options[:host] = ENV['HOSTNAME'] | |
config.action_mailer.delivery_method = :smtp | |
config.action_mailer.smtp_settings = { | |
address: ENV['SMTP_SERVER'], | |
port: ENV['SMTP_PORT'], | |
user_name: ENV['SMTP_USER'], |
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
Started GET "/assets/agent/twitter/fonts/glyphicons-halflings-regular.ttf" for 127.0.0.1 at 2015-06-26 11:24:56 +0700 | |
ActionController::RoutingError (No route matches [GET] "/assets/agent/twitter/fonts/glyphicons-halflings-regular.ttf"): | |
actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' | |
actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' | |
railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app' | |
railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call' | |
activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' | |
activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged' | |
activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged' |
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 "twitter/bootstrap/bootstrap"; | |
// Set the correct sprite paths | |
@iconSpritePath: image-url("twitter/bootstrap/glyphicons-halflings.png"); | |
@iconWhiteSpritePath: image-url("twitter/bootstrap/glyphicons-halflings-white.png"); | |
// Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines) | |
@fontAwesomeEotPath: font-url("fontawesome-webfont.eot"); | |
@fontAwesomeEotPath_iefix: font-url("fontawesome-webfont.eot?#iefix"); | |
@fontAwesomeWoffPath: font-url("fontawesome-webfont.woff"); |
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
tinyMCE.init | |
selector: '#my_editor', | |
plugins: [ 'image' ] | |
file_browser_callback: (field_name, url, type, win) -> | |
if type == 'image' | |
$('.mce-container.mce-panel.mce-floatpanel.mce-window.mce-in').hide() | |
$('.modal-backdrop').hide() | |
$('#mce-modal-block').hide() | |
$('#myModal').modal('show') | |
return |
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
# Set variables in .bashrc file | |
# don't forget to change your path correctly! | |
export GOPATH=$HOME/golang | |
export GOROOT=/usr/local/opt/go/libexec | |
export PATH=$PATH:$GOPATH/bin | |
export PATH=$PATH:$GOROOT/bin |
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
const echoPostRequest = { | |
url: 'https://<my url>.auth0.com/oauth/token', | |
method: 'POST', | |
header: 'Content-Type:application/json', | |
body: { | |
mode: 'application/json', | |
raw: JSON.stringify( | |
{ | |
client_id:'<your client ID>', | |
client_secret:'<your client secret>', |
OlderNewer