I’d like to learn how to write web applications with Ruby on Rails,
but I don’t know how to start with.
Can you give me some names of books or some good links (really
starting with the basics)?
How can I run such an app on a server (the tutorials ony mention how
to run it locally)?
What kind of software do I need (editor, console?, packages)?
Which software would you recommend (PC)?
I’ve heard this is the software I should use. What from the list above
do I really need or did I forgot one essential package?
I’ve looked at the tutorials, but I’m still not sure what software I
should install and which versions.
Would be nice if you cold write a step by step tutorial on that
(including the recent software releases and version numbers).
if you are using windows, get a copy of instant rails, and that will
install
everything you need to get started.
once you start going through the book, your questions about Ruby Gems
will
be answered. There are quite a few great tutorials available, but if you
follow the book, it will guide you in the right direction.
I’ve started to install ruby the gems and rails. (It worked!)
Is it necessary to install Mongrel ans MySQL? I’d prefer MySQL.
zok
Mongrel and MySQL are different thing – Mongrel is a server and MySQL
is a database. You should install Mongrel (it’s much faster than Webrick
for development) but Rails 2.0 includes the SQLite database engine now.
Just to make sure, did you install Ruby on Rails after installing Ruby
Gems?
if you did, great, if not you need to install it now (gem install rails
–include-dependencies). Mongrel is not necessary at this point, you
can
use the builtin web server WebRick.
MySql is the preferred database, but you can use any database that you
desire. to make administration of MySql easier, you should consider
installing WAMP server. It includes Apache, MySQL, and PHP My Admin.
it sounds like you are making this more complicated that it needs to be.
you
should just go with the base Ruby/Rails install. Use the builtin web
server,
and use a pre-packaged mysql instance (WAMP). you need to have a
database
installed in order to take advantage of Rails.
this is where personal preference comes in. you can use a number of text
editors.
for using wamp, you need to start the service, and then use the
phpmyadmin
to create a new database, and assign a user.
then edit the database.yml file in the confg directory of your rails
project. you can leave the socket and connector as default. update the
database name/user/password to whatever you created.
— 1. 'm using Aptana Studio now, but my question was: when do I have
to use CMD and when the Editor?
---- 2. PHPMyAdmin told me about the folowing Problem:
Your configuration file contains settings (root with no password) that
correspond to the default MySQL privileged account. Your MySQL server
is running with this default, is open to intrusion, and you really
should fix this security hole.
How can I fix that?
How can I make a db with ID, firstname and lastname (ID has to be
generated automatically).
Do you know good MySQL/PHPMyAdmin tuts?
— 1. 'm using Aptana Studio now, but my question was: when do I have
to use CMD and when the Editor?
Use what’s necessary and/or appropriate; work your way through
any of the tutorials available, or start developing your own app –
it should be pretty obvious when one or the other doesn’t work, or
is less effective.
---- 2. PHPMyAdmin told me about the folowing Problem:
Your configuration file contains settings (root with no password) that
correspond to the default MySQL privileged account. Your MySQL server
is running with this default, is open to intrusion, and you really
should fix this security hole.
How can I fix that?
This is a MySQL question and you should learn a little about the
DB you’re using. Understanding permissions and security issues
is not something to skip over lightly.
How can I make a db with ID, firstname and lastname (ID has to be
generated automatically).
Do you know good MySQL/PHPMyAdmin tuts?
No. Throw away PHPMyAdmin and learn to use the MySQL client –
at least for anything that migrations won’t handle
I would say that you would do well to take the advice and learn a bit
about databases first. Mysql is nice, and installs ok on windows.
I use the gui tools from mysql. Mysql admin for managing the
database, and creating tables etc. And mysql query for looking at
data and trying out queries etc.