Questions tagged [activemodel]

A toolkit for building modeling frameworks like Active Record. Rich support for attributes, callbacks, validations, serialization, internationalization, and testing.

ActiveModel brings many of ActiveRecord's features (such as validations and callbacks) to non-ActiveRecord classes.

707 questions
-3
votes
2 answers

6 simple but fundamental issue in RoR migration for beginner

Hi I have 6 simple and fundamental Problem in RoR migration and although I googled it and read many article about it and research it for a week , I didn't understand it. please help me for these problems : 1 - When I create a model (for example…
-3
votes
2 answers

Rails validations use-case

Reading the documentation of rails about custom validation I see 3 way of doing this : Custom validator inheriting from ActiveModel::Validator -> prototype : def validate(record) we use it with validate_with Custom validator inheriting from…
Alex
  • 307
  • 3
  • 7
1 2 3
47
48