This blogpost shows how to setup Rails 6 with Bootstrap 4.
This snippet shows a somehow different and less customized approach.
$ rails new rails6-bootstrap4
$ bundle --binstubs
$ yarn add bootstrap jquery popper.js expose-loader
#!/bin/bash | |
# filename: gem-install-libv8-darwin-20.sh | |
set -e | |
set -u | |
set -o pipefail | |
libv8_version="${1:-"8.4.255.0"}" | |
from='19' | |
to='21' |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Draggable Custom Painter', | |
home: Scaffold( |
// MIT License | |
// | |
// Copyright (c) 2019 Simon Lightfoot | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: |
This blogpost shows how to setup Rails 6 with Bootstrap 4.
This snippet shows a somehow different and less customized approach.
$ rails new rails6-bootstrap4
$ bundle --binstubs
$ yarn add bootstrap jquery popper.js expose-loader
$(function(){ | |
railsMonthDates(); | |
$("select[id*=_2i], select[id*=_1i]").change( railsMonthDates ); | |
}); | |
function railsMonthDates() { | |
$("select[id*=_2i]").each(function(){ | |
$monthSelect = $(this); | |
$daySelect = $(this).siblings("select[id*=_3i]"); | |
$yearSelect = $(this).siblings("select[id*=_1i]"); |