The CarrierWave gem provides us with an easy way to allow file uploads through forms.
In your Gemfile, include
gem 'carrierwave'
We will be using the [Devise gem][2] to help us get started with authentication (are you who you say you are?) and authorization (are you allowed to do/see this?).
gem 'devise'
to your Gemfile and bundle
rails g devise:install
Devise will give you some setup instructions. We don't need to worry about most of them, but we do need to set a root URL. Usually, you will point the root URL to the index action of some important resource in your application: In config/routes.rb
:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |