# \[ANN\] Error Messages For Plugin

**URL:** <https://www.ruby-forum.com/t/ann-error-messages-for-plugin/72544>\
**Category:** Rails\
**Created:** [October 17, 2006, 11:49pm UTC](https://www.ruby-forum.com/t/ann-error-messages-for-plugin/72544 "2006-10-17T23:49:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![markbates](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@markbates](https://www.ruby-forum.com/u/markbates)\
**Post date:** [October 17, 2006, 11:49pm UTC](https://www.ruby-forum.com/t/ann-error-messages-for-plugin/72544/1 "2006-10-17T23:49:10Z")

</div>

Hey there folks I’ve just released my first plugin. It enhances the  
built in error\_messages\_for helper to do a bunch of really useful things  
like, handling an array of AR objects, rendering a partial, and much  
much more.

The plug can be found at:  
svn://rubyforge.org/var/svn/railserrorsfor

Documentation can be found at:  
[http://rubyforge.org/docman/view.php/2392/544/README](http://rubyforge.org/docman/view.php/2392/544/README)

It’s RubyForge home is at:  
[http://rubyforge.org/projects/railserrorsfor/](http://rubyforge.org/projects/railserrorsfor/)

I hope this can help everyone. Let me know if any one has issues.

Enjoy.

---

<div class="post-metadata">

**Author:** ![markbates](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@markbates](https://www.ruby-forum.com/u/markbates)\
**Post date:** [October 18, 2006, 12:16am UTC](https://www.ruby-forum.com/t/ann-error-messages-for-plugin/72544/2 "2006-10-18T00:16:58Z")

</div>

Thanks! I had been looking for something like this.

AEM

On 10/17/06, Mark B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> [http://rubyforge.org/docman/view.php/2392/544/README](http://rubyforge.org/docman/view.php/2392/544/README)
> 
> >

–  
Adrian Esteban Madrid

---

<div class="post-metadata">

**Author:** ![markbates](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@markbates](https://www.ruby-forum.com/u/markbates)\
**Post date:** [October 18, 2006, 8:00pm UTC](https://www.ruby-forum.com/t/ann-error-messages-for-plugin/72544/3 "2006-10-18T20:00:18Z")

</div>

This is awesome, thank you.

Clean code.

Two things:

1. you still have .svn folders in the release.

2. I had to change line 38 in error\_messages.rb from:  
app\_errors \<\< “#{object.business\_name}  
#{key.to\_h.downcase}  
#{value}”  
to:  
app\_errors \<\< “#{object.business\_name}  
#{key.to\_s.humanize}  
#{value}”  
to make it work for me.

Great stuff, thanks!

---

<div class="post-metadata">

**Author:** ![markbates](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@markbates](https://www.ruby-forum.com/u/markbates)\
**Post date:** [October 18, 2006, 11:49pm UTC](https://www.ruby-forum.com/t/ann-error-messages-for-plugin/72544/4 "2006-10-18T23:49:38Z")

</div>

Create a gem!

Check out Dr. Nic’s [http://drnicwilliams.com/](http://drnicwilliams.com/) new\_gem

---

<div class="post-metadata">

**Author:** ![markbates](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@markbates](https://www.ruby-forum.com/u/markbates)\
**Post date:** [October 18, 2006, 8:35pm UTC](https://www.ruby-forum.com/t/ann-error-messages-for-plugin/72544/5 "2006-10-18T20:35:35Z")

</div>

Robert MannI wrote:

> This is awesome, thank you.
> 
> Clean code.
> 
> Two things:
> 
> 1. you still have .svn folders in the release.
> 
> 2. I had to change line 38 in error\_messages.rb from:  
> app\_errors \<\< “#{object.business\_name}  
> #{key.to\_h.downcase}  
> #{value}”  
> to:  
> app\_errors \<\< “#{object.business\_name}  
> #{key.to\_s.humanize}  
> #{value}”  
> to make it work for me.
> 
> Great stuff, thanks!

Thanks for the heads up Robert. I’ve patched it, and release 1.0.2 is  
now up.

[http://rubyforge.org/frs/?group\_id=2392](http://rubyforge.org/frs/?group_id=2392)

Keep the feedback coming!
