Showing posts with label Ruby. Show all posts
Showing posts with label Ruby. Show all posts

Friday, May 18, 2012

Ruby on Rails use CRUD

CRUD Steps
 First, you have create database addressbook_development
$ rails new addressbook -d mysql
$ cd addressbook
$ vim Gemfile
   gem 'therubyracer'
   gem 'thin'
$ bundle install
$ rails generate scaffold address name:string address:string
$ vim config/database.yml
$ password: your_password
$ rails s

Monday, May 14, 2012

Ruby on Rails Install

Ruby : http://www.ruby-lang.org/en/
RubyForge : http://rubyforge.org/
Installing libyaml
$ wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
$ tar xzvf yaml-0.1.4.tar.gz
$ cd yaml-0.1.4
$ ./configure --prefix=/usr
$ make
$ make install