Ruby syntax error for non existent lines -



Ruby syntax error for non existent lines -

i'm getting 41: syntax error, unexpected keyword_ensure, expecting keyword_end. have error line 43.

the catch? code stops @ line 40, , i'm not seeing spaces or tabs in sublime text... gives?

<div class="panel panel-default"> <div class="panel-heading"> <div class="panel-title"> <h1>listing reports</h1> </div> </div> <div class="panel-body"> <table> <thead> <tr> <th>summoner name</th> <th>user</th> <th></th> <th></th> <th></th> </tr> </thead> <tbody> <% @reports.each |report| %> <tr> <td><%= report.description %></td> <td><%= report.user.email if report.user %></td> <td><%= link_to 'show', study %></td> <% if report.user == current_user %> <td><%= link_to 'edit', edit_report_path(report) %></td> <td><%= link_to 'destroy', report, method: :delete, data: { confirm: 'are sure?' } %></td> </tr> <% end %> </tbody> </table> <br> <% if user_signed_in? %> <%= link_to 'new report', new_report_path %> <% end %> </div> </div>

this not ruby file. looks templating language, perchance erb. obviously, ruby doesn't understand erb, ruby understands ruby. therefore, file needs converted ruby first, , there's no guarantee converted file have exact same line numbers original template file.

ruby-on-rails ruby syntax-error

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -