Displaying 1 result from an estimated 1 matches for "thing_general".
2010 Mar 18
8
hash in controller is nil after submitting form
I''m trying to create a data entry form but getting an error when it
sumbmits. I am using an hash to get the names of the fields definied
in the controller''s "new" function:
def new
@thing = thing.new
@columns = Hash.new
@columns[''thing_general''] = [
["title","name"],
["number","num"],
etc...
and then I access it in the object''s new.html.erb:
<% for c in @columns[''thing_general''] do %>
<tr>
<td class="...