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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -