E
erik
The following piece of code returns:
syntax error, unexpected kELSE, expecting kEND
When I delete this block of code all works well - I have read that
this may be an issue with copied or pasted code, UTF-8 issues etc....
I have tried all of these - is there simply something wrong with my
code that I am not seeing?
<% if c.amount < 500 %>
<% @project.budgmonthexpends.findall, :conditions =>
[:year_id == c.year_id]).each do |d| %>
<% else %> <!-- Error is occuring here -->
<%@project.budgmonthexpends.findall, :conditions => :year_id
== c.year_id).each do |d|%>
<% end %>
Thanks,
Erik
syntax error, unexpected kELSE, expecting kEND
When I delete this block of code all works well - I have read that
this may be an issue with copied or pasted code, UTF-8 issues etc....
I have tried all of these - is there simply something wrong with my
code that I am not seeing?
<% if c.amount < 500 %>
<% @project.budgmonthexpends.findall, :conditions =>
[:year_id == c.year_id]).each do |d| %>
<% else %> <!-- Error is occuring here -->
<%@project.budgmonthexpends.findall, :conditions => :year_id
== c.year_id).each do |d|%>
<% end %>
Thanks,
Erik