Skip to content

Instantly share code, notes, and snippets.

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/opt/rubies/ruby-2.1.1/bin/ruby extconf.rb
/opt/rubies/ruby-2.1.1/bin/ruby: invalid switch in RUBYOPT: -p (RuntimeError)
extconf failed, exit code 1
Gem files will remain installed in /var/lib/jenkins/workspace/shipperprofile.shipt.com pull requests/.bundle/bundle/ruby/2.1.0/gems/debug_inspector-0.0.2 for inspection.
Results logged to /var/lib/jenkins/workspace/shipperprofile.shipt.com pull requests/.bundle/bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0-static/debug_inspector-0.0.2/gem_make.out
<div class='row buttons-group'>
<div class="span2 offset6 columns">
<%= link_to 'Cancel', '#', :class=> 'button cancel' %>
</div>
<div class="span2 columns">
<%=f.submit 'Save', :class=> 'button' %>
</div>
</div>
$(document).ready( function () {
$( "#dropdown-toggle" ).click( function(){
if ($("#dropdown-content").hasClass('active')) {
$("#dropdown-content").removeClass('active')
} else {
$("#dropdown-content").addClass('active')
}
});
});
#error_explanation.alert-error{
background: #f2dede;
background-color: #f2dede;
border: 1px solid #eed3d7;
color: #b94a48;
padding: 8px 35px 8px 14px;
margin: 0 0 20px;
}
#error_explanation.alert-error li{
font-size: 12px;
{
"post": {
"id": 5,
"name": "Barack",
"foo": "Obama",
"bar": "President"
}
}
{
"posts": [
{
"id": 1,
"title": "I'm Running to Reform the W3C's Tag",
"author": "Yehuda Katz"
},
{
"id": 2,
"title": "Rails is omakase",
.history-items .history-item:not(:first-child) {
margin-top: 0;
}
@baroquon
baroquon / application.js
Created January 23, 2015 05:37
app/serializers/application.js
import DS from 'ember-data';
export default DS.RESTSerializer.extend(DS.EmbeddedRecordsMixin, {
primaryKey: 'ID',
extractArray: function(store, type, payload) {
var payloadTemp = {};
payloadTemp[type.typeKey] = payload;
return this._super(store, type, payloadTemp);
},
extractSingle: function(store, type, payload, id) {
@baroquon
baroquon / person.js
Created April 12, 2015 01:51
example person.js model
import DS from 'ember-data';
import Ember from 'ember';
export default DS.Model.extend({
// Attributes
first_name: DS.attr('string'),
middle_name: DS.attr('string'),
last_name: DS.attr('string'),
notes: DS.attr('string'),
date_of_birth: DS.attr('date'),
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Notifying a property change on a property passed into a child component',
description: 'There is a parent component with some buttons. When a user clicks on a button, the buttons\'s action changes the property. Since the changed property is passed into the wrapped component, you would expect that it\'s observer would fire also. But it does not. To try this, just type in 1233 and you will see that the last 3 will not render.'
});