Good code sample on rails

I have been developing in rails for the past 1.5 years .. however, I believe that my code does not match the value, and I still do not fully use everything that Ruby and Rails have to offer. I looked through all the material available on the guide's website and included it in my code. However, every time I see another user's code, I learn new things about the language, like idiomatic syntax, etc.
I was wondering if there are any really good examples of rails code that people can send out that will help me speed up my progress on rails. It can be anything, for example, an open source plugin or an application with really high standards of code.

+3
source share
3 answers

You can start with github. There are many Rails plugins and applications. Here are some examples:

Plugin authors

+3
source

My favorite and most commonly used gem / Rails plugin will_paginate. Pagination is quite common in any web application.

will_paginate is hosted on GitHub. It works like a standard stone.

If you want to learn about the development of the Rails plugin, including how to read the code, you can read the Plugins Templates in Rails 2 .

0
source

Take a look at Mephisto, a blogging platform written in Rails: http://mephistoblog.com/

0
source

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


All Articles