You mean using messages to omit attribute prefix?

Because I mostly work with/display full message. Often you have multiple of 
errors, but only one should be prefix-less, and you want a loop to display 
them all.

Benjamin Fleischer於 2018年3月7日星期三 UTC+8上午12時38分49秒寫道:
>
> Any reason you can't use model.errors.messages ?
>
> On Tuesday, December 12, 2017 at 6:01:44 AM UTC-6, ma...@goodlife.tw 
> wrote:
>>
>> I happen to implemented a gem for this, and only now realized someone 
>> having the same issue as me.
>>
>> Repo: https://github.com/lulalala/adequate_errors
>> Blog post: http://lulalala.logdown.com/posts/2909828-adequate-errors
>>
>> Would it be possible to take some of these to Rails 6 (with the intention 
>> to break compatibility?)
>>
>>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to