我在我的代码面临着一个奇怪的错误,而使用HAML在我的代码工作在我的本地机器,但是当我部署它,我收到以下错误Haml的-Illegal嵌套:纯文本内筑巢是非法
::的ActionView ::模板出错(非法嵌套:纯文本内筑巢是非法的。):
我的代码看起来像这样
%td{ :style => 'width:10px' }
= link_to('Dashboard', dashboard_admin_clients_account_path(client)) if client.is_member?
= link_to('Edit', edit_admin_clients_account_path(client))
- if client.removed_at.nil?
= link_to('Delete', admin_clients_account_path(client), :method => :delete, :confirm => 'Are you sure you want to delete')
- else
= link_to('Restore', restore_admin_clients_account_path(client))
我是新来HAML
我遇到了一些麻烦找到这个问题的原因因为错误是在用render渲染的部分内部,但是堆栈跟踪指向了父级。 –