Add this line to your Gemfile:
gem 'devise'
Install Devise Files
When you make a new Ruby on Rails app, there are a few changes you must make to your app so that the production environment (Heroku) functions properly.
Firstly, if you don't have the Heroku CLI installed and the app setup. Go do that. This page isn't for that.
Next, in your Gemfile, make sure that if you're using anything other than postgreSQL for your Dev DB, you isolate it. Heroku uses postgreSQL.
Heroku also uses some other gem that the dev environment doesn't need. So you should have different gems for dev and production. Like so:
group :development, :test do
I had a lot of trouble trying to get one of my Rails apps to accomplish this common task. For one thing, my dev box runs Windows 7, which notoriously does not play nicely with Ruby on Rails. Another thing... all the instructions/tutorials/document for the gem I'm using, Wicked PDF, were either incomplete or, for some reason or another, didn't work for me.
That's all to say, here are the steps I took, and I hope they will help someone.
I used the Wicked PDF gem. Ryan Bates over at RailsCasts goes over using PDFKit, but this writeup will be all about Wicked PDF.
These next steps I got straight from the instructions on the GitHub page:
Download Ruby Installer and DevKit
1. Initialize
I frequently like to close programs by hovering over a group of windows, and middle clicking them closed.
The problem is, it takes something like a full second before the peek is shown, making the windows uncloseable for that time.
To remove this delay, add/edit the following registry DWORD (32-bit) value:
Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ExtendedUIHoverTime
To remove the delay, set it to 1
, not 0
(which seems to set it to the default of something like 1000 milliseconds).
Ever since reading a code snippet from an old colleague, I've strongly preferred a liberal amount of method calls to methods with verbose names. When others read my code, I want them to be able to quickly read a few method calls and understand what my the code should be doing from a very superficial level.
Recently, I started listening to the David Allen's audio book, "Getting Things Done: The Art of Stress-Free Productivity". In only a few chapters, this audio book has inspired me to completely revamp how I "get things done".
While I haven't heard the entire GTD system or even fully grasped everything I've heard, here are a few concepts that have already helped me become more productive at work and helped my family become more productive at home.
TLDR: always put actions, ideas, and reminders in a place that gets them out of your head but always in reach.