As for documentation, what you can get for free on the web is generally
of the reference-style, meaning that you kind of have to know what
you’re after to go find things. For instance, http://api.rubyonrails.org
will give you the nitty-gritty of every class, method, etc in the
system. But, if you don’t know what to look for, you’re prolly out of
For more tutorial/“teach me” style documentation, the Pragmatic
Programmers books are excellent:
Agile Web D. With Rails (commonly referred to as AWDWR)
Another excellent resource, specific to using AJAX in Rails:
You’re looking at about $50 for these, in my mind they’re worth many,
many multiples of that. If you get the PDF’s you’ll have them almost
immediately, and you get free updates.
As for email - there is no need to write your own class. ActionMailer is
part of Rails and will do just about anything you need it to, re: email.
See: http://wiki.rubyonrails.org/rails/pages/ActionMailer for beginning
With regards to “getting” the classes in rails, that’s a combination of
both Ruby and Ruby on Rails. If you want to deep-dive the Ruby language
itself, then the Programming Ruby book is what you want:
But that might be overkill - coming from ASP world. There is an appendix
in AWDWR that will intro you to Ruby.
Andreas S. wrote:
wooow…thats great - when you come from the MS ASP world - like me -
you never think about that there are such commands like find_by_username
… I am impressed - really!
I think I have the most problems - because I think in a total different
way - also when you are regulary type in SQL sequences into asp code to
get back data from an sql server - its really different to me to work in
this “new” way. I feel like a kid, doing the first steps in coding. I am
happy that I know a bit about c and c++ - but dont get the classes in
RoR. Where do I need to define the classes to access then from
everywhere. E.g. I want to create a SendEmail class - where do I need to
define this class to send emails from every controller? These is only
one question from many in my head.
what I also miss is a documentation which shows e.g. all ways to search
in a database. find, find_all, find_by_…