public marks

PUBLIC MARKS from Spone with tags rails & form

2016

Trailblazer: A High-Level Architecture For The Web

(via)
Trailblazer gives you a high-level architecture for web applications. Logic that used to get violently pressed into MVC is restructured and decoupled from the Rails framework. New abstraction layers like operations, form objects, authorization policies, data twins and view models guide you towards a better architecture. By applying encapsulation and good OOP, Trailblazer maximizes reusability of components, gives you a more intuitive structure for growing applications and adds conventions and best practices on top of Rails' primitive MVC stack. A polymorphic architecture sitting between controller and persistence is designed to handle many different contexts and helps to minimize code to handle various user roles and edge cases.

2014

Build forms with FormBuilder

Forms are pretty much the heart of the web. Almost everything a user inputs is done through a form. So, when building forms in rails, you want to make the experience as easy for you as possible. I know there's gems out there that tries to make your life easier to build forms (formtastic, simple_form, etc.) but did you know about ActionView::Helpers::FormBuilder? Let me take a simple signup form and show you how form builder can be used to easily customize a form.