solved .all and .create issue by replacing .all with .new under def new prek model