Let's imagine we want to assign pokemons to trainers.
We are creating a new_trainer form with checkboxes for each pokemon and their names next a checkbox to assign them to this new trainer, like this:
- Salameche
Class Post
13/01/2016
16/01/2016
activity_log | |
boss_news | |
delayed_job | |
link_posts | |
link_tweets | |
posts | |
rating_histories | |
tweets |
class MyKlass
include
CONSTANTS
belongs_to
has_one
has_many
accepts_nested_attributes_for
attr_accessible
validates