- Before running server, you should make sure that you are inside the directory of your rails application.
- To start the server: rails server
- To stop the server: ctrl+c
- To delete all files that rails generated for you:
- rd /S /Q {directory name} <<--- For Windows
- rm -rf {directory name} <<--- UNIX
- Copy libmysql.dll into E:\Ruby192\bin (C:\Program Files\MySQL\MySQL Workbench 5.2 CE)
- To bind RoR and MySQL together: gem install mysql
- To delete RubyGems libraries (previously versions): gem cleanup
- To create a database with MySQL: rails new {directory name} --database=mysql <<--- Don't swap the location of each word
- Don't forget "rails new" command when you create a new rails application!!!
- To create a database with MySQL: rails new {directory name} --database=mysql <<--- Don't swap the location of each word
- Don't forget "rails new" command when you create a new rails application!!!
Really nice blog post.provided a helpful information.I hope that you will post more updates like this Ruby on Rails Online Course Bangalore
ReplyDelete