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 It''s RubyForge home is at: http://rubyforge.org/projects/railserrorsfor/ I hope this can help everyone. Let me know if any one has issues. Enjoy. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Thanks! I had been looking for something like this. AEM On 10/17/06, Mark Bates <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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 > > It''s RubyForge home is at: > http://rubyforge.org/projects/railserrorsfor/ > > I hope this can help everyone. Let me know if any one has issues. > > Enjoy. > > -- > Posted via http://www.ruby-forum.com/. > > > >-- Adrian Esteban Madrid --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
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! On 10/18/06, Adrian Madrid <aemadrid-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Thanks! I had been looking for something like this. > > AEM > > On 10/17/06, Mark Bates <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > > 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 > > > > It''s RubyForge home is at: > > http://rubyforge.org/projects/railserrorsfor/ > > > > I hope this can help everyone. Let me know if any one has issues. > > > > Enjoy. > > > > -- > > Posted via http://www.ruby-forum.com/. > > > > > > > > > > -- > Adrian Esteban Madrid > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
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 Keep the feedback coming! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Create a gem! Check out Dr. Nic''s <http://drnicwilliams.com/> new_gem On 10/18/06, Mark Bates <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > 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 > > Keep the feedback coming! > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---