RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Validate plain old Ruby objects with Active Model Validations

A while ago I wrote about creating a landing page with Sinatra, Google Spreadsheets and Ruby. The app had a flaw though, any user data was valid and would post through to the spreadsheet. So here’s how to validate user data in plain old ruby objects using ActiveModel::Validations.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in