In a standard scaffold generator, the list.rhtml looks something like
this …
<% for column in Book.content_columns %>
<% end %>
How can I modify this code so for each table column add my own name not
the “human_name” generated code?
In a standard scaffold generator, the list.rhtml looks something like
this …
<% for column in Book.content_columns %>
How can I modify this code so for each table column add my own name not
the “human_name” generated code?
N/a N/a wrote:
In a standard scaffold generator, the list.rhtml looks something like
this …<% for column in Book.content_columns %>
<%= column.human_name %>
<% end %>How can I modify this code so for each table column add my own name not
the “human_name” generated code?
Done that with a partial form
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs