Form Objects and Rails' Form Builders
"Convention over configuration". This mantra is a cornerstone of Rails and a large reason it's so enjoyable to use. Adhering to Rails' sensible defaults is often the right decision when working with the framework, but at times you may be served best by trying something a little different.
Let's look at an example of where we can still adhere to Rails' contracts/conventions, and maybe write better code than Rails — the form builder.
#ruby #rails #rubyonrails #bosnia #programming #tutorials #news #rubydeveloper #railsdeveloper