Railsamples

Practical examples to master web forms in Rails

Why this website?

Railsamples curates examples for building forms using Rails. It presents simple working demos to help you design and understand the synergies between models, controllers, and views.

What is UniRails?

UniRails is a gem that allows minimal Rails apps to be served with only one file. The gem provides helper methods to truly build a Rails application with a single file. Unlike other single file examples you can find online, UniRails enables the definition of views, JS, and CSS in a single Ruby file that feels familiar to seasoned Rails developers. It is easy to map where each code block should live in a standard Rails folder structure.

For these reasons, Railsamples uses UniRails to showcase examples. You're one copy away from running the example locally on your machine.