How to change column names

I want to change my column’s names of my table only in view mode. I
don’t want to change database. For example in my table there is a column
“code_id” but in rhtml file when i write column.name it shoul gives me
“Id Code”.

how can i specify “code_id” to “Id Code” in model?

in your view

Id Code: <%= @modelname.code_id %>

scaffolds have a limit my friend…

On Jul 3, 9:24 am, Emre E. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs