Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to inspect errors in rable view files

I am using rabl with rails 3.2 application, I am getting errors in rabl view files but it's not pointing exact error line where error occured. So now I want debug view code for the line causes error, something like puts statement.

like image 473
ratnakar Avatar asked Aug 30 '13 05:08

ratnakar


People also ask

How do I find all the errors in my Excel workbook?

If you have previously ignored any errors, you can check for those errors again by doing the following: click File > Options > Formulas. For Excel on Mac, click the Excel menu > Preferences > Error Checking.

How do I find cell reference error in Excel?

The first way is to press either F5 or Control-G (Go To) and then select Special. After you do this, the Go To Special box will appear. Then, select Formulas, and only check the box that says “Errors.” Click OK. Excel will then take you to every cell that contains an error.

How is the presence of a formula error indicated?

Excel displays the #REF! error when a formula refers to a cell that is not valid.


1 Answers

You should be able to use the instanciated variables in the same way you would with any other template.

haml

=puts @variable.inspect

erb

<%= puts @avariable.inspect %>
like image 91
lsaffie Avatar answered Sep 21 '22 01:09

lsaffie