Bundler doesn't (and can't) bundle itself so
gem 'bundler', '>= 1.7.0'
isn't enough. Bundler must be updated manually locally and on each stage.
- @notes.each_with_index do |note, index| | |
# = render partial: 'notes/note', locals: { note: note, index: index + 1 } | |
= render 'notes/note', note: note, index: index + 1 |
if filereadable("bin/rspec") | |
let g:vroom_spec_command = './bin/rspec --format=documentation' | |
else | |
let g:vroom_spec_command = 'rspec --format=documentation' | |
endif |
Bundler doesn't (and can't) bundle itself so
gem 'bundler', '>= 1.7.0'
isn't enough. Bundler must be updated manually locally and on each stage.
module API | |
class UsersController | |
# This will cause problems in exactly two years from now | |
def index | |
render json: User.all | |
end | |
# Writing it this way from the beginning will allow | |
# to extend this object when the requirements change | |
def index |
angular.module("TestApp", ["mightyDatepicker"]); | |
angular.module("TestApp").controller("TestCtrl", function($scope){ | |
_callthis = function(day) { | |
console.log("call this: ", day); | |
} | |
_filter = function (day) { | |
w = day.weekday(); | |
return w < 6 && w > 0; | |
} |
<body ng-app="TestApp"> | |
<div ng-controller="TestCtrl"> | |
<div> | |
<h1>Simple date picker</h1> | |
<mighty-datepicker ng-model="date" options="options"></mighty-datepicker> | |
</div> | |
<div> | |
<h1>Multiple date picker</h1> | |
<mighty-datepicker ng-model="multi" options="optionsM"></mighty-datepicker> | |
</div> |
$scope.date = null; | |
$scope.options = { | |
months: 1, | |
after: moment(), | |
template: template | |
}; | |
<mighty-datepicker ng-model="date" options="options"></mighty-datepicker> | |
<mighty-datepicker ng-model="date" options="options"></mighty-datepicker> |
_callthis = function(day) { | |
console.log("call this: ", day); | |
} | |
_filter = function (day) { | |
w = day.weekday(); | |
return w < 6 && w > 0; | |
} | |
$scope.multi = [moment(), moment().add('day', 2), moment().add('day', 5)]; |
$scope.markers = [ | |
{ | |
day: moment(), | |
marker: "tutoti" | |
}, | |
{ | |
day: moment().add('day', 2), | |
marker: "tutotite" | |
} | |
] |