Will something like this work:
if model.save flash[:success] = "model successfully saved" else flash[:validate] = model.errors.full_messages.join("\n") end
Dan Manges
Will something like this work:
if model.save flash[:success] = "model successfully saved" else flash[:validate] = model.errors.full_messages.join("\n") end
Dan Manges
Can you copy and paste your model and controller action? If it's big use Pastie http://pastie.caboo.se/ and post a link here.
Thanks, Dan Manges