8

Please advice me some really great Ruby on Rails 3 application which i can use like example of best practices in Rails 3. The idea is i want to have the app on my hdd which i can use like reference when i have any questions how to implement some feature. It could be any blog engine, or app like Redmine does not matter but it should have almost all elements/functionality which is used to have any web application. And it should be done by using best practices from Ruby and Rails 3 point of view.

the Tin Man
  • 158,662
  • 42
  • 215
  • 303
paxer
  • 961
  • 10
  • 17

4 Answers4

6

There are definitely many apps on github to learn from. However a lot of solutions are very unique for particular contexts and everyone is always at some stage in their learning. Even in the best apps you should be able to find plenty to disagree with.

Here's a list of a few notable ones.

This is rubygems.org, strong community effort, has a lot of neat practices: https://github.com/rubygems/gemcutter

This project isn't necessarily best practices, but it's so loud and has so many people involved in working out all kinds of initially-written crap, that it may shape into something interesting: https://github.com/diaspora/diaspora

This is a popular e-commerce rails app for you to build upon. Haven't read the code, but again, it's pretty popular, which means, well supported by community: https://github.com/railsdog/spree

For more check out awesome github's explore page: https://github.com/explore.

P.S. Bucketwise is a Rails2 app created by Jamis Buck (of 37signals and Rails core). It's still worth watching even if you're looking for Rails 3 insights.

Max Chernyak
  • 37,015
  • 6
  • 38
  • 43
  • You can probably learn a lot from Bucketwise, but it is not Rails 3. Seems TS is looking for Rails 3 apps only. – Mischa Nov 12 '10 at 05:34
  • Yeah, I missed that. It's still worth it though. – Max Chernyak Nov 12 '10 at 05:36
  • I agree, hence the upvote ;-) – Mischa Nov 12 '10 at 05:44
  • As of today (2011-02-03), the Diaspora code does not *look* good to me. By this I mean the code has a bunch of extra whitespace scattered, especially in the controllers. Some controller actions are way too long. – David J. Feb 03 '11 at 19:39
2

I like the Getting Started with Rails guides. They're not really a complete app, but they are good examples of how things should be done and should be current.

You can also search on Github for Rails apps. The source code should be viewable, and if you have an account you can watch the various projects and see what's new.

the Tin Man
  • 158,662
  • 42
  • 215
  • 303
  • yeah search on Github is good, but not all apps there written well even if it written on Ruby on Rails it still could be not in "Ruby or/and Rails way", so i am looking one or two apps which is approved by community as a well done in Rails and Ruby way. – paxer Nov 12 '10 at 05:59
  • Wading through Github is a good way to find code, but not an easy way to find *good* code. I think paxer was looking for some specific recommendations of well-written Rails applications. – David J. Feb 03 '11 at 19:41
1

rails3-devise-mongoid is a good one

as is ror_ecommerce

Andrew Barber
  • 39,603
  • 20
  • 94
  • 123
stephenmurdoch
  • 34,024
  • 29
  • 114
  • 189
  • also, consider running the [rails-best-practices](https://github.com/flyerhzm/rails_best_practices) gem against any code that you write – stephenmurdoch Nov 12 '10 at 06:30
  • I think rails3-devise-mongoid is good for what it is intended -- to demonstrate how to use Rails 3, Devise, and Mongoid together, but I don't think it is a particularly good example of a full Rails 3 demonstration application. It is just too bare bones. – David J. Feb 03 '11 at 19:45
1

Opinions of "best practices" vary widely. I would just read a ton of rails 3 code on github, and then read a ton more! By reading code, you will learn what is common in the rails world and develop your own best practices.

raidfive
  • 6,603
  • 1
  • 35
  • 32
  • not exactly, i agree reading code is very useful, but there is a term - "Rails way", "Ruby way". Many things could be done on Ruby but not in "Ruby way" the same with Rails. I am trying to find best example. – paxer Nov 12 '10 at 06:20