Learning RoR

Hi,

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)?

Would be nice if you’d help me out.
Thanks
zok

Thanks,

so I have to install

– Ruby ( http://rubyforge.org/frs/?group_id=167 )
– Rails ( http://rubyforge.org/frs/?group_id=307 )
– MySQL ( http://dev.mysql.com/downloads/mysql/5.0.html#win32 )
– Subversion for Windows (
http://subversion.tigris.org/project_packages.html
)
– Capistrano ( http://www.capify.org/download )
– Mongrel ( http://rubyforge.org/frs/?group_id=1306 )

Do I need the Ruby Gems?

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).

Kind Regards,
zok

Hello,
Follow Agile Web development with rails and also check out the link
which
enlists 12 best RoR tutorials.
http://www.digitalmediaminute.com/article/1816/top-ruby-on-rails-tutorials

Cheers
Vaibhav

On Jan 17, 2008 3:10 AM, zok [email protected] wrote:

What kind of software do I need (editor, console?, packages)?
Which software would you recommend (PC)?

Would be nice if you’d help me out.
Thanks
zok


Cheers,
Vaibhav
Helping Laymen become Technology Enthusiasts at
http://technofriends.wordpress.com

you need to get a copy of Agile Web D. with Ruby on Rails
http://pragprog.com/titles/rails2

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.

Jason

zok wrote:

thx,

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.

thx,

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

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.

Jason

so I’ve just installed Mongrel.

Where should I install MySQL (or do i really have to?)

After installatoin of Mongrel, Ruby, RubyGems and Rails: How can I
start with an new project? What kind of software do I have to use?

Thanks for your help, this forum is amazing!
zok

If it’a rails project then type
rails MyProjectName

I would suggest that you looked here:
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html

just to get a feel og the framework.

Please note, if you want to store and retrive data, you do need a
database, this can be local or with a hostingfirm, you deside.

regards
svend

I’m not able to start the Mongrel service!! it always says something
about service::start !!

I used this guide http://mongrel.rubyforge.org/docs/win32.html but it
isn’t working.
What’s wrong with that.

zok

On 18 Jan., 14:10, “[email protected][email protected]

could this be that mongrel is already started, and occupy port 3000?

you shall use gem install mongrel

restart your computer after.

ok do I have to remove mongrel? How can I do that?

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.

Hey,

I’ve done the following things

  1. Install Ruby (doubleclick on ruby186-26.exe)
  2. Install Gems (doubleclick on setup.rb)
  3. in CMD gem install rails --include-dependencies
  4. rails NewProject
  5. cd NewProject
  6. ruby script/server
  7. in Browser localhost:3000

… and it orked I’m riding Ruby on Rails!

So I’ve to install this WAMP and then?
How can I modify the files? When do I have to use an Text-Editor and
when CMD?

Thank you so much ,
zok

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.

save your changes, and that’s it.

Easiest way to get RoR running: InstantRails.
http://instantrails.rubyforge.org/wiki/wiki.pl

Hey,

— 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?

Thanks,
zok

On Jan 20, 2008 2:05 PM, zok [email protected] wrote:

I cant’t believe, nobody knows that :slight_smile:

Actually, everybody does but you… j/k :slight_smile:

On 19 Jan., 13:52, zok [email protected] wrote:

— 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 :slight_smile:

FWIW,

Hassan S. ------------------------ [email protected]

I cant’t believe, nobody knows that :slight_smile:

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.

you can get the gui tools from the mysql site

http://dev.mysql.com/downloads/gui-tools/5.0.html

the file you want for windows is:

mysql-gui-tools-5.0-r12-win32.mis

regards
Tonypm

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs