0 Replies Latest reply on Nov 1, 2013 2:37 AM by Ruben Ruben

    FixedSchema: Give property a default value

    Ruben Ruben

      I have a big FixedSchema model, and I wish to set some default values for certain properties: I have several "new" views that don't ask the user for all the required values (but they need to be there). So far, i've used hidden inputs in the view, but it seems kinda ugly to put model-logic there.


      I've tried using def initialize to set default values, but it will fail (initialize expects different number of arguments, if I remember correctly)


      What would be the correct way of doing this?