in your view
Id Code: <%= @modelname.code_id %>
scaffolds have a limit my friend...
On Jul 3, 9:24 am, Emre Erisgen
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> 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?
> --
> Posted viahttp://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@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---