Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    •  
      CommentAuthorwdm
     

    If you have a generic model "Archive", how do you show different views/forms based on a user selected 'type'?

    For example, the user creates a new "Archive", then gets the choice of video, book, audio etc. From there they get different forms based on the archive type.

    Or would it be better to split them into different models? Or can models inherit (like Video extends Archive). I guess this is basic OOP / classes, but have no idea how to apply that here.

    Guess I need to read up on Rails table inheritance...

    •  
      CommentAuthorGNUNano
     
    I think you should do. But as a programmer, you have the options how to deal with that thing especially choosing a place to code from. Mine is in the Mt. Everest.