link_to is a Rails method, not a Haml method. What's the error message? On Fri, May 6, 2011 at 2:08 PM, nick <nick.mcfarl...@gmail.com> wrote:
> I'm transitioning a rails 2.2.2 app from Centos 4 to Ubuntu 10. I'm > getting a compile error in rails: > > ... > On line #162 of app/views/projects/show.haml > > 159: = "imported (ref:#{mi.myob_id})" > 160: - else > 161: %p (No milestone invoices to display) > 162: = link_to 'Add milestone invoice', :controller => > 'invoices', :action => 'new_sales', :id => @project > 163: > 164: %h2 Subcontractor milestone invoices > 165: - if @project.invoices.subco_milestone.size > 0 > > app/views/projects/show.haml:248:in `compile!' > ... > > I'm using haml gem version 3.1.1. > > Has the syntax of link_to changed in haml? What is happening in this > line? > > Thanks > Nick > > -- > You received this message because you are subscribed to the Google Groups > "Haml" group. > To post to this group, send email to haml@googlegroups.com. > To unsubscribe from this group, send email to > haml+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to haml@googlegroups.com. To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/haml?hl=en.