Rails:Can we perform data validation on the controller side for a UI wizard? -
i have rails application pre-process data fetched service call. retain data in session.
further, maintain other pieces of data in session variables step being validated , expected data should input user.
i use data validate inputs entered via ui wizard. i'm validating data on controller side did not seem make sense controller send data model , validated there.
is ok this? or violate "fat model- skinny controller" approach?
Comments
Post a Comment