Bootstrap 4 Update: Rails 4.2 Example
Time to try out Bootstrap 4!
Overall impression – I like the Bootstrap 4 updates but upgrading a project of any size is going to be tedious! Plan accordingly.
- Jul 19, 2016:
The project had been updated from Bootstrap 3 to Bootstrap 4 (alpha3)
If you’re still interested in Bootstrap 3.x, the github repository has a ‘bootstrap3’ branch. I don’t have any plans to maintain the old version but I’ll keep it around for awhile.
- Jun 30, 2016:
Project source in Github has been updated to Rails 4.2.6, Devise 3.5.5, Rspec 3.4 and Capistrano 3.2
- April 30, 2018:
The live demo sites have been taken down. Unclear if there would be any GDPR issues plus this project is basically un-maintained at this point. Time to focus on Rails 5.2!
Earlier today I made public my new Rails 4.2 / Ruby 2.2 example/starter website repository on GitHub.
The application has a dashboard as a welcome screen that also displays a list of the current gems being used. The user login/sign-up is handled by
devise. User authorization is handled by
cancan. The styling is using Twitter Bootstrap 4 via the
bootstrap-rubygem gem. A user that’s designated as an ‘admin’ has the ability on the Admin tab so see the list of users, edit user information and add/delete users.
Logging to watch user activity via
devise is included. (Here’s the blog post explaining how I put the tracking together.) You can generate a quick report of
devise usage on the Logs sub-tab on the Admin tab if you’re an ‘admin’ user or by running
rake devise_usage:report. One caveat is that I haven’t added a maintenance script yet so for now there is no automated way included to archive off rows and prune the logging table.
As always, would love to hear your comments and questions.