About Cacher
Web App
Download
Sign In
Sign Up
menu
Cacher is the code snippet organizer for pro developers
We empower you and your team to get more done, faster
Learn More
parm530
6/11/2019 - 4:21 PM
share
Share
add_circle_outline
Save
Table-less Model
tableless.md
content_copy
file_download
Rendered
Source
How to implement a table-less model in Rails
Need a model without database interaction?
Just remove the inheritance of
< ActiveRecord::Base
include ActiveModel::Model
within the class to be able to use validation methods
Make sure to declare
attr_accessor
's and use them in the
initialize()
method!
clear