hibbard.eu
Authentication with Devise and cancancan in Rails 4.2 - hibbard.eu
http://hibbard.eu/authentication-with-devise-and-cancancan-in-rails-4-2
Authentication with Devise and cancancan in Rails 4.2. Added on 19.01.2015. This is a beginner level tutorial on how to set up authentication (verifying who you are) and authorization (what you are permitted to do) using Ruby 2.2, Rails 4.2 and two popular Ruby gems: Devise. The code for this tutorial is on GitHub: https:/ github.com/hibbard-eu/authentication-with-devise-and-cancancan. This means we’ll need the following resources:. Here’s a UML diagram showing how they relate to one another:. From the t...
hibbard.eu
2015 January Archive - hibbard.eu
http://hibbard.eu/2015/01
Archive for January, 2015. Nested attributes and updating without a password in Devise. Added on 23.01.2015. I’ve spent all day trying to get Devise and nested attributes to play nicely together. This and giving the user the ability to update parts of their profile without providing a password proved kind of tricky. Here’s how I got things working. Authentication with Devise and cancancan in Rails 4.2. Added on 19.01.2015. How to install rbenv on Linux Mint 17.1. Added on 03.01.2015.
hibbard.eu
How to install rbenv on Linux Mint 16 - hibbard.eu
http://hibbard.eu/how-to-install-rbenv-on-linux-mint-16
How to install rbenv on Linux Mint 16. Added on 11.02.2014. Last year I switched from Windows to Linux Mint as my main operating system and wanted to install a Ruby version manager. I weighed up the pros and cons of what was available and eventually opted for rbenv. As it seemed more lightweight, would let me compile my Rubies myself and (in contrast to RVM. Didn’t come with any way of managing gems. I searched Google and came up with a couple of tutorials to follow, such as this one. After this, typing.
hibbard.eu
2014 November Archive - hibbard.eu
http://hibbard.eu/2014/11
Archive for November, 2014. How to setup Rails with PostgreSQL on Linux Mint. Added on 03.11.2014. Rails is database agnostic, meaning that it can talk to different databases without more than configuration changes. Here’s how to install PostgreSQL. On Linux Mint 16 and configure it for use with Rails. I'm on Twitter: Follow @jchibbard.
hibbard.eu
How to install rbenv on Linux Mint 17.1 - hibbard.eu
http://hibbard.eu/how-to-install-rbenv-on-linux-mint-17-1
How to install rbenv on Linux Mint 17.1. Added on 03.01.2015. Last year I wrote about installing rbenv on Linux Mint 16. Back then the installation process as described on the project’s Github page. Didn’t work for me and, after much frustration, I ended up installing an older version of rbenv from the repositories. Nonetheless, this still involved a little preparation and several steps which I want to summarize in this post. So, Let’s Get Started! Sudo apt-get install git. Git clone https:/ github.c...
hibbard.eu
Computers Archive - hibbard.eu
http://hibbard.eu/category/computers
Archive for ‘Computers’. How to Save Multiple Checkbox Values to a Database in Rails. Added on 29.09.2015. Imagine you have a form in your Rails app which is backed by an ActiveRecord model. In this form there are a bunch of checkboxes, the values of which you want to persist to your database. How do you go about handling this scenario? How to Set Up an Apache Virtual Host on Linux Mint. Added on 21.02.2015. Nested attributes and updating without a password in Devise. Added on 23.01.2015. Didn’t wo...
hibbard.eu
How to Set Up an Apache Virtual Host on Linux Mint - hibbard.eu
http://hibbard.eu/how-to-set-up-an-apache-virtual-host-on-linux-mint
How to Set Up an Apache Virtual Host on Linux Mint. Added on 21.02.2015. Running Apache on my local machine helps me speed up my web development work. It means that I can use root-relative urls. Server-side programming languages (such as PHP) and interface with a database all without having to upload anything via FTP. The only problem comes when you are working on multiple projects at the same time. If you create different directories for different projects within your web root (which defaults to. Virtua...
hibbard.eu
2014 April Archive - hibbard.eu
http://hibbard.eu/2014/04
Archive for April, 2014. Resurrecting a Rails 2.x app. Added on 29.04.2014. This morning I had to give a client an estimate for some work they wanted doing on a Rails 2.1.2 app. The work itself wasn’t overly complicated, but getting a system up and running using Ruby 1.8 and Rails 2.1 proved to be somewhat of a challenge. Here’s how I did it. Creating a Simple Style Switcher. Added on 15.04.2014. Read the complete article on SitePoint. I'm on Twitter: Follow @jchibbard.
hibbard.eu
How to validate that two time ranges don’t overlap in JavaScript - hibbard.eu
http://hibbard.eu/how-to-validate-that-two-time-ranges-dont-overlap-in-javascript
How to validate that two time ranges don’t overlap in JavaScript. Added on 31.05.2014. I was working on a form for a timekeeping app, where a user is able to enter their time worked, as well as breaks taken. There is no limit on the amount of breaks that may be taken, but one of the validation requirements is that no two breaks may overlap. Here’s how I implemented this validation check. So let’s start off with a form, that allows you to enter time worked, as well as add or remove breaks dynamically.
hibbard.eu
2015 February Archive - hibbard.eu
http://hibbard.eu/2015/02
Archive for February, 2015. How to Set Up an Apache Virtual Host on Linux Mint. Added on 21.02.2015. Running Apache on my local machine helps me speed up my web development work. It means that I can use root-relative urls. Server-side programming languages (such as PHP) and interface with a database all without having to upload anything via FTP. I'm on Twitter: Follow @jchibbard.
SOCIAL ENGAGEMENT