# export the database
# use gem 'seed_dump'
# which writes all your data into db/seeds.rb
rake db:seed:dump
# import the database
# upload seeds.rb to server
- Git tagging is like a mark where you mark a specific commit so that you can track how many commits ahead you are from that mark (tag)
- A tag can only mark a commit, not multiple commits
# commit something first
# tag a commit (will tag last commit)
git tag -a v1.0 -m 'An intelligent message'
- Download VirtualBox from http://virtualbox.org/
- Download the IE versions from http://modern.ie/
- Follow the instructions from Modern.ie to extract the OVA file
- Open VirtualBox and select "File" > "Import Appliance"
- Select the OVA file
- ENSURE 'Reinitialize the MAC address of all network cards' is checked
- Start up the Virtual Machine after you have imported the OVA
- In Windows, open Internet Explorer
- Go to
http://10.0.2.2:3000
to access your Rails server
- Grid Options: http://getbootstrap.com/css/#grid-options
- Download Bootstrap
- Copy
bootstrap/dist/css/bootstrap.css
andbootstrap/dist/css/bootstrap.min.css
tovendor/assets/stylesheets
- Copy
bootstrap/dist/js/bootstrap.js
andbootstrap/dist/js/bootstrap.min.js
tovendor/assets/javascripts
- Update app/assets/stylesheets/application.css
*= require bootstrap
- Update app/assets/javascripts/application.js
//= require bootstrap
This resolves the issues of writing files to NTFS disks on mac.
- Plug in your drive
- Run the script below (Replace DRIVENAME with your drive name)
- Unplug your drive and plug it in again
- You won't see your drive on the desktop or finder
- Type
open /Volumes
and you will be able to see your drive - Write your files!!!
Tip: To unmount the disk, type diskutil unmount /Volumes/DRIVENAME
- Refer to this website: http://blog.55minutes.com/2013/01/lightning-fast-sass-reloading-in-rails-32/
# Gemfile
group :development do
gem 'guard', :require => false
gem 'guard-livereload', :require => false
gem 'rack-livereload'
- Use macvim
brew install macvim --override-system-vim
or install without macvim- brew install mercurial
- brew install vim
- Setup your vim to use vundle to install bundles: https://github.com/gmarik/vundle
- Download and setup VirtualBox
- Download GenyMotion from https://cloud.genymotion.com/page/launchpad/download/
- Install and start!
To access your POW site from GenyMotion, use http://project.192.168.56.1.xip.io
(Ref: http://bbowden.tumblr.com/post/58650831283/accessing-a-localhost-server-from-the-genymotion)
- Works for mobile browsers too
- http://html5test.com/
OlderNewer