# Help w/ errors.add\_to\_base between controller and model

**URL:** <https://discuss.rubyonrails.org/t/help-w-errors-add-to-base-between-controller-and-model/8288>\
**Category:** rubyonrails-talk\
**Created:** [February 6, 2007, 8:32pm UTC](https://discuss.rubyonrails.org/t/help-w-errors-add-to-base-between-controller-and-model/8288 "2007-02-06T20:32:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_Manges1](https://avatars.discourse-cdn.com/v4/letter/d/839c29/32.png) [@Dan\_Manges1](https://discuss.rubyonrails.org/u/Dan_Manges1)\
**Post date:** [February 6, 2007, 8:32pm UTC](https://discuss.rubyonrails.org/t/help-w-errors-add-to-base-between-controller-and-model/8288/1 "2007-02-06T20:32:58Z")

</div>

Will something like this work:

if model.save &nbsp;&nbsp;flash[:success] = "model successfully saved" else &nbsp;&nbsp;flash[:validate] = model.errors.full\_messages.join("\n") end

Dan Manges

---

<div class="post-metadata">

**Author:** ![Dan\_Manges1](https://avatars.discourse-cdn.com/v4/letter/d/839c29/32.png) [@Dan\_Manges1](https://discuss.rubyonrails.org/u/Dan_Manges1)\
**Post date:** [February 6, 2007, 11:33pm UTC](https://discuss.rubyonrails.org/t/help-w-errors-add-to-base-between-controller-and-model/8288/2 "2007-02-06T23:33:11Z")

</div>

Can you copy and paste your model and controller action? If it's big use Pastie [http://pastie.caboo.se/](http://pastie.caboo.se/) and post a link here.

Thanks, Dan Manges
