It seems that rails doesn’t like hyphens in column names. This is
just one of several that I get the same error message on. Is there a
way to use hyphens in column names? This table gets written out to a
text configuration file for an application that needs the field names
with hyphens, so if I use an underscore in rails I just have to write
extra code to reformat the field names when exporting the data to the
text file.
(eval):1:in `class_eval’: compile error
(eval):1: syntax error
def announce-frequency; raise NoMethodError, ‘missing attribute:
announce-frequency’, caller unless
@attributes.has_key?(‘announce-frequency’);
@attributes[‘announce-frequency’]; end
^
(eval):1: syntax error
def announce-frequency; raise NoMethodError, ‘missing attribute:
announce-frequency’, caller unless
@attributes.has_key?(‘announce-frequency’);
@attributes[‘announce-frequency’]; end
^
Extracted source (around line #13): 10:
<%= astqueue.send(“name”) %> | <%= link_to ‘Edit’, :action => ‘edit’, :id => astqueue %> |
<%= link_to ‘Destroy’, { :action => ‘destroy’, :id => astqueue }, :confirm => ‘Are you sure?’ %> |