say I have a model call Game. and I also have a string called ‘game’.
how can I parse the ‘game’ string to have a class reference so I can
call methods on Game?
psuedo:
eval(‘game’).find(1)
wrockit
say I have a model call Game. and I also have a string called ‘game’.
how can I parse the ‘game’ string to have a class reference so I can
call methods on Game?
psuedo:
eval(‘game’).find(1)
wrockit
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs