Skip to content
wuworkshop edited this page Apr 9, 2013 · 14 revisions

Lesson 6 - Creating a New App

To bundle install without production gems, type the following into Terminal: bundle install --without production

Lesson 15 - Amazon S3

The reason why you don't see any of the images that you uploaded a while ago to Heroku is because Heroku automatically deletes any images or files on their servers that users have uploaded. Heroku is for hosting your web application, NOT for storing images or other assets.

You can check all your Heroku config variables by typing the following in Terminal:

heroku config

References:

Lesson 16 - Image Uploading via URL

The command for generating a migration is: rails generate migration [NameOfYourMigration] [optional attributes]

Example from the lesson: rails generate migration AddImageRemoteUrlToPins image_remote_url:string

Don't forget to run rake db:migrate to update your database after generating the migration. You will need to do that on Heroku as well by typing heroku run rake db:migrate after pushing your changes to Heroku.

Lesson 17 - Populating Your Database with the Faker Gem

The Faker Ruby Gem allows you to populate fake data into your databases.

References:

To view all tasks related to the database, type the following in Terminal: rake --tasks

Lesson 18 - Pagination

The will_paginate Gem is a pagination library for Rails 3, Sinatra, Merb, DataMapper, and more.

References: