Rails is an application framework for developing web-based applications. It works quite well for building websites and/or web applications. Perhaps you've heard of twitter?
Flex works well with it, too -- Manning has a book, Flexible Rails, about that topic.