Installing Rails on Windows (step-by-step tutorial)
Ok, so this will basically be somewhat a repeat of the information made by Curt Hibbs in this great hands-on tutorial. However, the versions of all products changed from the time Curt made his tutorial, and in some areas I felt that additional description was required. So, in this tutorial you’ll get a step-by-step instructions on installing Rails on Windows 2000 Server (Windows XP would be very similar).
In order to have a fully working development environment, you can use your PC. You will need to install:
- Ruby - the language
- Ruby Gems - the plug-in manager for Ruby
- Scite or FreeRIDE - IDE for Ruby
- MySQL - the database
- MySQL query builder / MySQL admin tools - GUI to create databases, add users and create tables
- Rails Framework
I. Installing Ruby
This is easy. Just get the latest One-click Installer for Windows (currently 1.8.2-15). Installation is simple, and indeed one-click. Once the installation is complete, check that path to ruby\bin directory is in your PATH variable (Run “cmd”, then type “path” at the prompt and check that the path is there.
The great thing about the one-click installer is that it comes with Ruby Gems, Scite and FreeRIDE preinstalled. The thing to watch out for is that one-click installer does not have the very latest version of Ruby, so when you are reading Ruby Docs, make sure you know which version of Ruby you have (run “ruby -v” in the command prompt).
II. Installing MySQL
This might be more tricky, depending on your home computer’s set up. First, download and run the latest Windows Essentials (x86) version of MySQL (currently 5.0.18). After the files are unzipped, an Instance Config should run automatically (you can run it manually at any time from your MySQL bin directory just run “MySQLInstanceConfig.exe”).
Below are the options to use for the Instance Configuration.
1. Select “Detailed Configuration”

2. Choose “Developer Machine”

3. Choose “Multifunctional Database”

4. Leave the next screen unchanged

5. Choose “Decision Support / OLAP”

6. From the security perspective it is better to have “Enable TCP/IP Networking” unchecked, however I wasn’t able to make MySQL work with Rails in that case. So, choose “Enable TCP/IP Networking” for now and leave “Strict mode” checked.

7. Choose “Best Support for Multilingualism” (MySQL will use Unicode for stored data).

8. Have both options checked.

9. Now, create a password for root account. Make sure that you do not use an easily guessable password and do NOT leave these fields blank (ie, do not use blank password for root). Also, leave the “Enable root access from remote machines” unchecked.

10. Click “Execute”. If everything went ok, you should have green tick marks for all installation steps.

11. Now, you need to do some basic security tweaking, to make sure nobody hacks your database from the outside. Go to the MySQL directory (c:\mysql by default), open my.ini and add the following line to the [mysqld] section of your server configuration file:
bind-address=127.0.0.1
This line will make sure that only services from your localhost will be able to access database (so, this means you and your web server).
Now, you need to restart MySQL. Go to Services (In Windows 2000: Start -> Programs -> Accessories -> Administrative tools -> Services), find “MySQL”, highlight it, click “Stop” and then “Start” icon.
12. Quickly try if your mysql set up is working, by running this command in the prompt:
mysql.exe -h 127.0.0.1 -u root -p
You will be asked to type your password and if everything is fine, should be presented with the message “Welcome to the MySQL Monitor” and the mysql prompt. It works! You are almost there.
If it does not work - first, make sure that you are entering the password right (check Caps Lock and Language Indicator). Check that MySQL service is running (see step 11). Another usual suspect is your local Firewall (your router firewall will not interfere with the local MySQL installation). A quick fix would be to allow communication for ruby.exe and mysqld-nt.exe on all ports (check your Firewall manual or help).
III. Installing Rails
1. Go into the ruby bin directory and run this command from the command prompt:
gem install rails --include-dependencies
(If this command gives you an error, you do not have the latest version of gems installed. Run “gem -v”, it should be 0.8.10. If it’s an earlier version, I recommend to reinstall the newest package - see beginning of the tutorial).
This command will install rails 1.0 and RDoc documentation for it. It should take up to 5-10 minutes, so do not worry when for a couple of minutes you just see a message “Updating Gem source index for: http://gems.rubyforge.org/” - there is no progress bar or any other indication of activity, but it is doing the work.
At the end you should see something like this:

2. After that, create a directory for all of your projects. I just have one in the ruby directory. Go into this directory by using the “cd c:\ruby/myprojectsdir” and run
rails firstproject
You should see something similar:

3. Finally, “cd firstproject” and run
ruby script/server
This will run the file “server” (no extension) in the script subdirectory of “firstproject directory”, which will in turn run the Rails built-in web server WEBrick. Test the web server by opening the following address in your browser:
You should see the following pic:

One of the drawbacks of having a Ruby-based web server is that WEBrick needs to run in its separate command prompt window, so you should be careful not to close the window down incidentally, or you will need to restart the web server.
Congratulations! YOU ARE ALMOST DONE!
IV. MySQL Admin
Here, you have several options, however the tool I love the most - MySQL Control Center - is no longer in development. You can still download it here (v.0.9.2) or here (v.0.9.4). Or you can download MySQL Administrator and Query Browser from MySQL.com. I haven’t tried those tools yet, so I will show how to work with MySQL CC, but the steps will be very similar.
Note on MySQL CC and MySQL Administrator / Query Browser:
MySQL CC is not fully compatible with MySQL 5.x, so it might be better to use Administrator and Query Browser. However, MySQL CC is a very easy to use bare-bones program and it allows to do everything you need in this tutorial. If you opt for Administrator / Query Browser set-up, you would use the Administrator only for creating database users (and in future for setting up security, back-ups and restarting MySQL). For all other things you will use the Query Browser (in the Query Browser databases are called “Schemas”, and when you first run QB, you can safely ignore the warning to supply the schema name).
1. Install MySQL Admin and run it.
2. Create a new database connection by clicking the icon shown (or press Ctrl-N):

3. Fill out the information as shown in the picture below:

Name: This is any name you want - for GUI purposes only. Call it “My Development Database”.
Host name: This would be either “localhost” or “127.0.0.1″. On some weird configs “localhost” might not work, so try to use either one.
User name: “root”. Leave it as is.
Password: your root password. Remember setting it when installing MySQL? ![]()
Make this server the default connection: If you do not have any other databases, tick this box. By running MySQL CC next time, you will automatically connect to the database.
Now, click the “Test” icon, and if successful, click “Add”.
4. Create the database.
Go to the main console. It now should have your database “My Development Database”. Check that it is connected, if not click the “Connect” icon.
Right click on the “Databases” folder and select “New database”. You will be presented with the following prompt. Just name the database “firstproject”, although it does not really matter how you call the database.

5. Now, back to the main console window, you should see the database name “firstproject” in the list of databases for your server. Double click on the database and then click on the “Tables” subfolder. It should look something like this:

6. Now, the database for your project has been created, you need to create a test table. Right click the “Tables” folder and choose “New table”. Let’s make two fields: id (type: int) and title (type: varchar).
“id” field is required by Rails and is the usual feature for the majority of tables. You do not usually insert the “id” directly, so we need to make sure that “id” is never empty (not null) and is automatically incremented (0,1,2,3,…). Also, make sure that the “id” is written in lowercase, for Rails to understand that this is your unique id field.

Now, let’s define “id” as our primary field. Go into the “indexes” tab, select “id” field and press the right arrow, it should end up looking something like this:

Now, add the “title” and choose the type “varchar”, like this (length of 100 symbols should be enough for your title, but when you will be adding a field for url you would want to change it to 255):

Finally, click the “Save” icon and you will be asked to name your table. Rails has a special notation for naming tables - basically they have to be in plurals, as they will hold instances of particular class (objects).
Let’s call the table “Stories” (Rails is supposed to know the plural form for “Story”, so let’s try it out). Go back to the main console window and double click the “Tables” subfolder. On the right you will see the list of tables (we have only one at the moment - called “Stories”). Double click the table, it should return an empty set, as you do not have any records yet. (Do not try to create a record - MySQL CC will not correctly do this in MySQL 5.x).
7. Finally, it would be wrong to run your project using a root password. So, you need to create the database user especially for your project. It is very easy to do. In the main console right-click on the “User Administration” folder and select “New User”. Fill out the form as shown:

Username: rails (this would be the username exclusively used for your project)
Host: localhost
Password: password you will use to access this user account
Priviliges: You should provide the least possible priviliges for the user. The ones selected by default are ok, but you can actually safely leave priviliges to only “Select, Insert, Update and Delete”, as we do not plan to create, drop (delete) or alter (change structure of) tables from our Rails scripts. Finally, select, to which databases you are allowing access. Select ONLY the “firstproject” database and click “Add”.
V. Rails in action
1. Now that the database model was prepared, we need to switch it on for our project. Go into your rails project subdirectory (you remember where you created it, right?). In the “config” subfolder you will find file database.yml. Open it and find the “development” section. In it, change database name to “firstproject”, username to “rails”, password to rails user password. Leave socket unchanged. Here is how it will look like:
development:
adapter: mysql
database: firstproject
username: rails
password: railspass55
socket: /path/to/your/mysql.sock
In order for those changes to work, you will need to restart the WEBrick server. Close the WEBrick window and run the server command again:
ruby script/server
2. You have the database schema defined and you configured Rails to access your database. Now, what we need is to create the class called “Story”. The easiest way to go is to create a scaffold, which is basically a default script to work with the standard database operations under the acronym of CRUD (Create Read Update Delete or in SQL terms: INSERT, SELECT, UPDATE and DELETE). To do this, again go to your script’s directory and run this command:
ruby script\generate scaffold Story
Make sure that you use the capital “S” - this is actually a Ruby rule that you need to follow - class names need to be capitalized. So, this is where the magic happens - you do not need to define the class in Ruby the “hard-way”. You define the class variables (so-called states) only once - in the database, and then those variables are automatically recognized by Rails and a standard CRUD framework is applied, which you can replace with your own code as you go.
3. Finally, check that everything works by going to this link: http://127.0.0.1:3000/stories/
For fun, try creating, updating and deleting records and see how the table records are automatically updated in the MySQL CC or Query Browser.
IN CONCLUSION
Installing Ruby on Rails is not a difficult process, but it takes some time. However, once installed you will not only feel comfortable with basic MySQL administration, but will also get a development environment which is much faster and easier to use than a hosting based alternative. Once you create a web service that can be released to public, you can easily move it to one of the Rails hosting providers.
Trackbacks & Pingbacks
- hairy ‘ » Blog Archive » When does real Ruby magic begin? pingbacked on 2 years, 6 months ago
- oneafrikan.com » Blog Archive » Installing Rails on Windows (step-by-step tutorial) pingbacked on 2 years, 4 months ago
- pingbacked on 2 years ago
- Like Your Work » Blog Archive » links for 2006-07-12 pingbacked on 2 years ago
- Camping lujo espana trackbacked on 1 year, 10 months ago
- Codemonster » A Southern Rubyist in the Land of Enterprise JAVA: Part 1 pingbacked on 1 year, 10 months ago
- Ben Reichelt’s Weblog » Learning Ruby on Rails pingbacked on 1 year, 10 months ago
- RoR « In God’s Country pingbacked on 1 year, 7 months ago
- Ruby on Rails unter Windows aufsetzen « Entwicklungen für die Bühne des Lebens pingbacked on 1 year, 4 months ago
- What Is RUBY? - Discussweb IT Community - Web Development, Software Programming, SEO, Quality Assurance, 3D, Web Hosting and more... pingbacked on 1 year, 4 months ago
- Teabass » Getting Ryan on Rails - Part 1 pingbacked on 1 year, 3 months ago
- Rex is Excited » Daily Links pingbacked on 1 year, 3 months ago
- Installing Ruby on Rails on Windows Vista « Ganee’s Weblog pingbacked on 11 months, 2 weeks ago
- Adım Adım Ruby On Rails Kurulumu | Gürkan OLUÇ pingbacked on 10 months, 1 week ago
- Béla Korcsog- Comments on Adobe Flash Development and Code Samples » Ruby on Rails with RailsAMF pingbacked on 10 months, 1 week ago
- Ruby, Rails, Mysql and Windows Vista | so I was thinking… pingbacked on 9 months ago
- Mainfram Reality » Ruby on Rails on Windows pingbacked on 4 months, 3 weeks ago
- Ruby on Rails for Windows Developers | TechToolBlog pingbacked on 4 months, 2 weeks ago
- Installation « Bio-in|RoR|matics pingbacked on 4 months ago
- Not So “Instant Rails” « blakes pingbacked on 2 months, 1 week ago
- how to install rails on windows « Notes While Learning Ruby On Rails pingbacked on 1 month, 2 weeks ago
Comments
Leave a Comment
Just want to point out that the command above that reads:
gem install rails –include-dependencies
has two dashes before “include”. The cmd window screenshot correctly shows the two dashes but the inline text does not.
Thus the correct command should read:
Posted 2 years, 6 months agogem install rails –include-dependencies
Fidel, you are correct, the parser or dhtml editor replaced two dashes with a single em dash. I fixed it. Thank you!
Posted 2 years, 6 months agoThanks.. you saved my time.
Posted 2 years, 5 months agothank you,i found this much helpful for me
Posted 2 years, 5 months agoHow to install rails without connect to internet?
thx
Posted 2 years, 5 months agobudee: Get the gem package here: http://rubyforge.org/frs/?group_id=307
Posted 2 years, 5 months agoHi,
I had a TCP/IP port for mysql: 3308 and I had to add the following to the database.yml file in order to get the scaffold to get created:
development:
adapter: mysql
database: firstproject
username: rails
password: railspwd
socket: /path/to/your/mysql.sock
# Connect on a TCP socket. If omitted, the adapter will connect on the
# domain socket given by socket instead.
host: localhost
port: 3308
I didn’t touch the socket variable. I had to uncomment the host and port and set them to what mysql is running at (the way it was installed on my machine).
I am guessing that for any port you’d have to add those last two variables (if mysql was enabled for TCP/IP). I am running MySQL 5.0.19.
This tutorial saved me a lot of pain. I still got stuck twice so I am having learning pains. But then, if it was easy, I’d be worried about my mental health. It definitely is a new way of thinking. Takes time to get used to. Thank you for the effort to make it easier for us.
Ivana
Posted 2 years, 4 months agoHi,
How and where shud one install “the gem package from here: http://rubyforge.org/frs/?group_id=307” ..if one has already installed ruby package using the one-click ruby installer, you have mentioned
Posted 2 years, 4 months agoi am kind of new to the technology.. and wud appreciate your help a lot..
Posted 2 years, 4 months agoSame question as anamik. How to install the gem package and rails offline?
Posted 2 years, 4 months agoAlmost the same as Ivana, but now I’m having the following when trying to execute:
ruby script\generate scaffold Story
NO CONNCTION COULD BE MADE BECAUSE THE TARGET MACHINE REFUSE IT..
The MySQL DB is in a local network machine and is accessed by other tools very quickly.
So what would be the right changes to the database.yml file when it comes to the path of the database?
Posted 2 years, 4 months agoThere are “a couple” of developers out there with sql server running on their windows machines already..
All you need to do if you want to use ruby on rails with sql server is install ruby-dbi (with ruby, see the README). Download it from http://rubyforge.org/projects/ruby-dbi/.
This example for configuring database.yml was taken from the ruby on rails wiki:
adapter: sqlserver
database: database_name
host: DBI:ADO:Provider=SQLOLEDB;Data Source=server_name;Initial Catalog=database_name;User Id=user_name;Password=your_pw_here;
username: user_name
password: your_pw_here
This worked directly without problems for me.
Posted 2 years, 3 months agoHi there,
Posted 2 years, 3 months agoI need some help please…I am a Ruby newbie - using MySQL Front for GUI database manipulations on MySQL database/server, I am this morning, not able to connect to the database. I guess this is actually a MySQL problem rather than Ruby. I have used a blank password as suggested, but when I attempt connecting via MySQL Front, I encounter the error message: ” Cannot connect to MySQL Server on “localhost”!”
I get a similar response when i test my connection within DOS using the mysql.exe -h 127.0.0.1 -u root -p command. Prompted to enter a password, I leave it blank as I earlier mentioned- resulting in a similar error message. Everything worked fine just yesterday. What can I do? Thanks for helping
My problem is as soon I set a password in the database.yml file, I get an syntaw error when starting again the webrick server ! the webrick server is able to start coorectly as soon as I leave the password blank in database.yml, but then of course I can’t connect my application to the database.
Posted 2 years, 3 months agoCan somebody help me, great thanks
I don’t have a local internet connection, is there some way i can install ruby on rails offline, where i can copy the necessary installers from a nearby internet cafe and install them at my home pc?
Posted 2 years, 3 months agoI’m, also lookng for installing rails on a disconected PC , i could install gems but I need a lot ofe dependencies for installing rails : rake , …
Posted 2 years, 2 months agoI can’t get my rails WEBbrick to open right it tells me http://0.0.0.0:3000/ and that doen’t work. Do you know what maybe wrong? email me if you can help joshspoonATgmail.com
Posted 2 years, 1 month agoExcellent article!!! Being a beginner to RoR, I configured and ran my sample rails application in just 1 hr. Rails is gonna rock the web development. Cheers!!!!!!!!!
Posted 2 years, 1 month agowhen I run:
ruby script/generate scaffold Product Admin
I get the following error message:
#2800Access denied for user ‘root’@'localhost’ (using password: NO)
I have set a pasword on my MySQL root account. Where in RubyOnRails is the script, so I can enter the password and get the application installed?
Would really appreciate some direction, I just can’t figure out which script where. It was very late…..(smile)
Posted 2 years, 1 month agoThanks in advance,
G
Its a really nice tutorial for getting people started. Now I have got ruby & rails up & running.
Posted 2 years agoThank you.
I have same query
How to install rails without connect to internet?
Thanks
Posted 1 year, 12 months agoSee this link if you need to install Rails without an internet connection:
http://lists.rubyonrails.org/pipermail/rails/2006-June/047469.html
Posted 1 year, 11 months agowhen i run command ruby script\generate scaffold Story
i get befor updating scaffolding from new DB schema ,try creating a table for your model(Story)
actuall i have 5 tabel in my database and i run this data base with other app
Posted 1 year, 10 months agovery good
can any one help me ??\
Excellent tutorial for all beginners. i have just configured ruby with its all functionality (gems and all that). it has taken 5 hours to configure properly. but atlast em able to run samlple add/edit/delete record pages. the whole credit for this goes to you all only… thanks for this tutorial.. BEST OF LUCK!
Posted 1 year, 10 months agothere is some problem in gem installation because of that rail is not getting installed. can u tell me what to do for that?
Posted 1 year, 9 months agocool artice! thanks
Posted 1 year, 9 months agoGreat article, nothin left out saved me a sore head cheers!
Posted 1 year, 9 months agoThe rails could be installed without connecting to net by installing the actionpack-1.12.5
actionmailer-1.2.5
actionwebservice-1.1.6
etc.
(a total of 6 files i guess )
One could easily get them by googling
Once you dld them , install each by “gem install ”
Example:-
********************************
C:\ruby\bin>gem install actionmailer-1.2.5
C:\ruby\bin>”c:\ruby\bin\ruby.exe” “c:\ruby\bin\gem” install actionmailer-1.2.5
Attempting local installation of ‘actionmailer-1.2.5′
Successfully installed actionmailer, version 1.2.5
Installing RDoc documentation for actionmailer-1.2.5…
C:\ruby\bin>
********************************
Finally when all are installed , install rails with following command
C:\ruby\bin>gem install rails
If all the files are installed , rails will be installed
Posted 1 year, 9 months agoBeing new to rails ive got some error in installing rails at start…
Its on the part of the ri documentation will it affect the installation?
At the database I can’t make the “Stories” table.. it is now “stories” Will this affect the end result..
Also im experiencing this error at the command:
ruby script\generate scaffold Story
Routing Error
Recognition failed for “/stories/”
when accessing the http://127.0.0.1/stories/
What could be the problem with this sir? Thank you in advance.
Posted 1 year, 7 months agohow do you install ruby on rails in windows which has already a wamp server running?
Posted 1 year, 7 months agoI wanted to test out the rubricks cms on my wamp server. please assist me in installation.
Posted 1 year, 7 months agothank for help install ruby on rails for windows
Posted 1 year, 7 months agoWow! I am really impressed. That is a very well thought out and documented installation. Thank you so much!
Posted 1 year, 7 months agoI would not have been able to get Rails going without this tutorial. However at the very last step of the tutorial, I encountered an Access Denied error ‘root’@'localhost’. Scanning forums indicate that other people have also come across this error. In my case the error was caused by not changing the default name of the database in the yml config file to ‘firstproject’. I was trying to use the default database name that is created by the rails firstproject command, which is ‘firstproject_development’. Truncate the development and things should work.
I am using a newer version of ruby (1.8.5) and rails (1.1.6) and the MySQL Administrator than used in the tutorial, (current as of January 2007) yet differences to tutorial were minor.
Posted 1 year, 6 months agoThe VERY BEST ARTICLE that i was looking for. Nice screenshots for easy learning and cool explanations for those wanting to Learn Ruby Language and MySql.
Great work! ^_^
Thanks!
Posted 1 year, 6 months agoThis article was a very big help for me also. I also had to learn how to install the mySQL add-on module, make my app run after a restart, and set up my dev. environment, so I added some info in my own tutorial:
http://jupiterit.com/wordpress/?page_id=36
That might help out some people needing more help.
Posted 1 year, 6 months agoexists app/controllers/
exists ……
………….
identical app/models/story.rb
………….
error Before updating scaffloding from new DB schema, try creating a table for your model (Story)
NOTE: wamp5 is running at the backend
Posted 1 year, 6 months agoGary,
That error means you need to create a table in your database called “stories”.
Posted 1 year, 6 months agoThanks. I am able to install ruby, rubygem and rails.
Posted 1 year, 5 months agoI was also getting the
#2800Access denied for user ‘root’@’localhost’ (using password: NO)
When i input a pasword the server would not start giving me a connection error. The solution is to make sure to keep the spaces in the database.yml file.
Wrong:
development:
adapter: mysql
database: firstproject
username: ruby
password:pass
host: localhost
Correct:
development:
adapter: mysql
database: firstproject
username: ruby
password: pass
host: localhost
Hope this helps someone. Good tutorial.
Posted 1 year, 5 months agoBeautiful!! Awsome!! and Ground Level Tutorial… I love it
I read lots of lots of articles to do RubyOnRails using IIS or Apache but no server required with this Article that’s another beautiful thing
Also with “Ivana” comments:
——
# Connect on a TCP socket. If omitted, the adapter will connect on the
# domain socket given by socket instead.
host: localhost
port: 3308
——-
Every thing is working fine… BUT
little tweaking/feedback from my side is:
————————————————————————-
on Windows, MySQL is not case sensitive so field name “Id” and “id” are same.
but using “Id” didn’t worked on my winXP+mysql4.1
so you must see if your side is working or not, and also be careful for the case sensitive OS like Linux when you upload your scripts for production.
Thanks
Posted 1 year, 5 months agoThanks hips!
Nice step by step guide.
Posted 1 year, 5 months agohow to resolve this error
ERROR: While executing gem … (SocketError)
Posted 1 year, 5 months agogetaddrinfo: no address associated with hostname.
Help pls….
Error : While executing gem . …….(Timeout::Error)
execution Expired….
What is the reason for this issue..?
Pls tell me how to get rid of this.
Thanx in Advance,
Posted 1 year, 4 months agoMaulik Bhatt
Installing rails is too difficult. I begin to be disappointed.
Posted 1 year, 4 months agoGood tutorial … I was able to generalize most of this to WinXP + MySQL Query Browser + MySQL Administrator fairly easily. Thanks!
Posted 1 year, 4 months agoExcellent piece of work.
Posted 1 year, 3 months agohey
Posted 1 year, 2 months agoi need help i install ruby,rails,mysql,fastcgi and all required gems. while making an application i got a mysql error i do no\t understand wht is this any body help me???
thank you very much
Posted 1 year, 2 months agoworks perfectly with wamp ..
thanks for the very useful article
Posted 1 year, 2 months agohi
Posted 1 year, 2 months agoany info is a great help to me
I’m stuck in MySQL Administrator’s first popup box “Connect to MySQL Server instance” using MySQL Administrator 1.2.12. I use Server Host 127.0.0.1 port 3000, username = root, password = prev entered password.
Posted 1 year, 2 months agoThe welcome page at http://127.0.0.1:3000/ is displayed and i’ve got the cmd-prompt with WEBrick running.
Never mind - I’m just stupid, MySQL wasnt running =)
Posted 1 year, 2 months agoHey, great tutorial. I skipped the bit about using MySQL CC. You can just create one manually using PHPMyAdmin if you’ve done an xampp install. The moment I got a single form field on a web page that added my tiny title to the db I leaped! I’ve been toiling away writing scripts left right and centre using PHP for 2-3 years trying to avoid .NET and know I’ve got something I can use without going the proprietary software. Thank you.
Posted 1 year, 1 month agoHi thnaks for the tutorial, but im having trouble installing MySQL
i keep getting:
Error 1045
Acess denied for user ‘root@localhost’ {using password: YES}
says port 3306 is not working. So i switched off my firewall yet it still doesnt work. What can i do to open the port?
can anyone please help me
Posted 1 year agoC:\ruby\myprojectsdir\firstproject>ruby script\generate scaffold Story
Posted 1 year agoexists app/controllers/
exists app/helpers/
exists app/views/stories
exists app/views/layouts/
exists test/functional/
dependency model
exists app/models/
exists test/unit/
exists test/fixtures/
identical app/models/story.rb
identical test/unit/story_test.rb
identical test/fixtures/stories.yml
getaddrinfo: no address associated with hostname.
Great tutorial,
Posted 1 year agoAnyone got any similar info for deployment to windows server?
Thanks!
Previously, I had installed instantrails on my W2K system: the process of adding Ruby and Rails to my existing testbed seemed too complex. However, after finding your tutorial, I was able to integrate Ruby/Rails into my existing testbed without difficulty–and I also installed mysqlcc.
Thank you very much for this great tutorial; it gets a five-star rating from me.
Royce Tivel
Posted 12 months agohttp://www.selectdigitals.com
After 3 years hearing about it, today finally decided to install it. It was a bit difficult to find a how to reference to install rubyonrails into windows, is very easy to install just ruby, with your tutirial was quite easy to do it.
I just had one problem but was a mysql grant permissions user. I had the user but no the database permssions to manipulate the database I created, so, when I restarted the webbrick server an error just happened, if I puted on the root user I was abble to rerun rhe server but no to generate the scaffold.
Finally I set up the permissions and also a password to my user (not the root) and was abble to reach the final section. Now, ¿how can I start to programm?
Greetings!
Posted 11 months, 3 weeks agoExcellent documentation. It works, I followed the each and evry steps one by one. If any body having any issues with the installation steps please ping me at prabhatrishi@rediffmail.com
Regards,
Posted 11 months, 2 weeks agoPrabhat
If any body did the installation on RHEL4 then please do let me know the steps.
Note: Please visit http://slideshare.net/prabhtrishi
Regards,
Posted 11 months, 2 weeks agoPrabhat
Thank you for the great article. For my development setup this works pretty well. I like it this way and I appreciate the steps listed. It offers some core understanding of Ruby’s background!
Thanks again,
regards, Patrick
Posted 11 months agoDoes it *make* me name my tables with Capital first letter or make the db case insensitive?
Posted 10 months, 2 weeks agoOr else it won’t work, running the examples by the book.
excellent tutorial-worked perfectly!
Posted 10 months agoThis was really helpful for me. Thanks.
\m/ FoRsAkEnKiD \m/
Posted 7 months, 2 weeks agoTHanks so much for this… It was incredibly helpful!
Posted 7 months, 2 weeks agoThanks so much, this was incredibly helpful!
Posted 7 months, 2 weeks agoI would like to see a continuation of the topic
Posted 7 months agoI get stuck at the “cd firstproject” part (step III, number 3). I get an “Invalid directory” message whenever I type in “cd firstproject” at the “C:\RUBY\BIN>” prompt. Everything was working fine up to that point. What should I do? Thanks for any help.
Posted 7 months agoExcellent tutorial , would like to have more .
Posted 6 months, 2 weeks agoThank you!!! This was wonderful. You have explained this so well, and I got it all to work!
Posted 6 months, 1 week agothank You, that was really useful.
Posted 5 months, 3 weeks agolatina asian pussy naked free gallery pictures
Posted 5 months, 3 weeks agoThis is a great tutorial — thanks a lot for posting it. Server Intellect, our Windows host, has been really good at handling any issues for us that may arise, which makes the whole process a lot easier than it has been in the past.
Posted 5 months, 1 week agoNote that on cygwin, i kept getting “NO such file or directory - /tmp/mysql.sock” even though no socket file existed anywhere, nor was i setting the socket property in database.yml.
The workaround was to set the host and port property in the database.yml file:
host: 127.0.0.1
port: 3306
Using “localhost” gave me the same error as above, it had to be 127.0.0.1
Posted 5 months, 1 week agoThis was a very useful article.
Posted 4 months, 3 weeks agoI got the app running, however, my screen doesn’t show the ‘title’ field. It shows the “New” link and when I click the “Create” button, I do see that a record has been inserted in the DB but with the title as empty.
What could be the problem?
I have the same problem as Naren.
Very useful article bu I don’t see the ‘title’ field when I run the app.
Any information on this would be very much appreciated.
Posted 4 months, 2 weeks agoone easy way is to use “instant ruby” on windows
Posted 4 months, 1 week agoGreat work !!
Posted 3 months, 3 weeks agoThis got me up and running in no time . Highly appreciate it . I have been more of a dot net developer but the features i have heard of here are simply fantastic . I wanted to be up with the environment . Hats off to you !! Thanks
Hi,
Posted 3 months, 1 week agoI followed the tutorial above and now i created a table in my db and got it as something like http://127.0.0.1:3000/trials/. I have 2 rows and it shows the edit,show and other options alone with the content of my rows, i had given the previlages for select stmt and others also in my db, what could be the problem
Hi,
When I type:
cd c:\ruby/firstpro I get a syntax error? And I cant restart my server again
The CMD for Ruby is called ruby.exe, and located in the bin folder?
Posted 1 month, 1 week ago