Displaying 1 result from an estimated 1 matches for "the_actual_column_name".
2006 Mar 14
5
Column aliasing in ActiveRecord?
Anybody know of a way to alias a column in ActiveRecord such that you
could reference it via a different symbol in your view for view
purposes?
Like my column is named X but I want to display it as Y and maybe I have
an accessor named Y set up on the model so that when I "call" Y from the
view (and controller?) I''m actually manipulating the column X?
Hope that makes sense.