not the category.
>
> Are the other content bits messing up because i havnt done the form
> correctly then?
>
> If so do you have a more direct response to fix it? as im really not
> good in rails...
>
> Thanks In Advance,
>
> Joe
>
> On Sep 27, 10:49 pm, richardun
"Yes" is the short answer, but I was hoping that explaining more about
it you'd get a little more out of my answer.
Cheers,
Richard
On Sep 27, 5:28 pm, richardun wrote:
> Yourvalidationerrormessage is coming from your model. In your
> model, you have something like th
alue instead of the column
name you're going to try to humanize.
Hope that helps,
Richard
On Sep 26, 4:52 pm, bgumbiker wrote:
> THanks Richard,
> Could you post any further usage example as I am quite new in Ruby and
> Rails and do not understand what happening below in your cod
Please Help me solve this issue, and sorry for my permanent bumping
> > and this time I shall wait until I decide to bump (if I decide to bump
> > atall)
>
> > Thanks In Advance,
>
> > Joe
>
> > On Sep 26, 5:33 pm, Joe wrote:
>
> > > Yes correct I am
Actually, bgumbiker, I just posted this answer yesterday so a bit more
searching might have produced an answer.
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/cf59e09f98981f27/6c7fe5ff9dd016bc?lnk=gst&q=customize+active+record+attribute+display+name+in+error+message#6c7fe5ff9
Marnen is right. You're not going to get far with people's help most
places if you don't take the minimal effort to be courteous (or at
least stop using "Soz").
You seem to be desperate rather often (http://groups.google.com/group/
rubyonrails-talk/browse_thread/thread/
a25e07d2414e2b32/4bca7399
I responded just a bit ago, but I don't see my response, so hopefully
there won't be two responses...
Essentially, Drew, you can map the column to be something else when
you call "humanize" on it. Try this:
class Post < ActiveRecord::Base
HUMANIZED_COLUMNS = {:msg => "Message"}
def self.h
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/cf59e09f98981f27/42caa6a0b45fd271#42caa6a0b45fd271
I've been trying to say this:
I responded just a bit ago, but I don't see my response, so hopefully
there won't be two responses...
Essentially, Drew, you can map the column to
Hi drewB,
You can change the "humanized" version of that symbol when it's
accessed via human_attribute_name.
Try this:
class Post < ActiveRecord::Base
HUMANIZED_COLUMNS = {:msg => "Message"}
def self.human_attribute_name(attribute)
HUMANIZED_COLUMNS[attribute.to_sym] || super
end
en
9 matches
Mail list logo