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: <table width="90%" border=0
class="c4" align=center>
11: <% for astqueue in @astqueues %>
12: <tr class="c4">
13: <td width=60%><%= astqueue.send("name")
%></td>
14: <td width=10%><%= link_to ''Edit'', :action
=> ''edit'', :id =>
astqueue %></td>
15: <td width=10%><%= link_to ''Destroy'', {
:action => ''destroy'',
:id => astqueue }, :confirm => ''Are you sure?''
%></td>
16: </tr>