in my models i have contexts like
acts_as_taggable_on :sport, :music
in the console i can do this
@student = Student.first
@student.sport_list = ("baseball, soccer")
@student.save
@student.music_list = ("rock, pop")
@student.save
@student.sport_list
[baseball, soccer]
@student.music_list
[rock, pop]
All this works right but, in views I want to do this dynamic I catch in one string the context selected between others contexts by JavaScript for example:
mycontext = music
my doubt is: Its possible make dynamic do
@student.mycontext_list = "rock, pop"
because I get the following error undefined method `mycontext_list=' for Student:0xb4475d4c
greetings friends!!!