My personal blog around GNU/Linux


Just read a tutorial of how to create a Simple application that will create users and let users to post microposts but without any authenticaiton using Ruby on Rails

mkdir RoR_Projects

cd Ror_Projects

rails new demo_app

nano Gemfile

” sqlite “, “1.3.2”, : ….. ” –> modified.

sudo bundle install

rake db:migrate

rake generate scaffold User name:string email:string

rake generate scaffold Microposts content:string user_id:integer

cd ~/RoR_Projects/demo_app/

git init

git add .

git commit -a -m “Initial commit”

git remote add origin git@github.com:<username>/demo_app.git
git push origin master
sudo heroku create
sudo heroku rake db:migrate
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: