Great ruby โ€‹โ€‹on rails - examples of practically real applications

Great ruby โ€‹โ€‹on rails examples of practically real applications: Can someone give links to sites that have such codes, using the best practices in the structure, their implementation, models, controllers, security, representations, caching, modulation, etc.? thanks

+4
source share
3 answers

You can start with guide.rubyonrails.org. They have a lot of information there. A very good example to start with. Start with the Getting Started link. This site also has many other examples.

In the next step, you might be better off buying a book on this subject. I bought Simply Rails 2 from Patrick Lenz. Also a very good starting book with good examples. It guides you through an application similar to Digg. This will take you to the Model-View-Controller skill set.

If you want to go further, I would suggest Agile Web Development with Rails, third edition of Sam Ruby, Dave Thomas, David Heinemeier Hansson. I would suggest PDF because I use it as a link, and searching on 774 pages is useful, to say the least. This is my favorite, but definitely not a starting book. It crashed into two halves. The first half is a shopping cart writing tutorial. In this example, you find yourself in database models, migrations, sessions, helpers, ajax, routes, security - shows you how to create your own authentication process and much more. The second half of the book is more of a reference tool and goes deeper than a textbook on application.

From here I would look at plugins to help you. Search on www.github.com. They host many open source plugins. Don't be too wild on plugins because too many will prevail over RESTful principles. For security / authentication, I would recommend Authlogic. I still think itโ€™s useful to study a tutorial on how to create your own authentication (from the Agile Web Development with Rails book) to find out what is actually included in this plugin.

Last but not least, to start thinking about how you will deploy your application. You might think that this is trivial, but the longer you put it off, the more difficult it will become. Take a look at capistrano and deprec gems (plugins) for deployment on VPS. I had a lot of problems deploying to a shared host.

Do not start with the hardest part of the rails like me. Work with guides first and enter more advanced applications. Rails has a pretty steep learning curve.

Hope this helps.

+4
source

Found my post while I was looking for the same thing, this blog post was useful: http://blog.chrislowis.co.uk/2010/05/31/five-rails-apps-to-study-and-learn- from.html

+3
source

The real-time repo provides 100+ (and growing) active open-source Rails applications together in one repository using git submodules.

You can clone the assembled codebases and study Rails applications written by experienced developers. You will find all codebases in apps / subdirectory .

The apps you'll find there include Discourse, Diaspora, GitLab, Hound, Rails Contributors, and the Ruby Gems website.

0
source

Source: https://habr.com/ru/post/1308954/


All Articles