See update: for answer at bottom
Original question:
I have a <script></script>
in my page and when it runs it does:-
<% Route.all.each do |route| %>
var long = "<%= route.longitude %>";
var lati = "<%= route.latitude %>";
var title = "Route <%= route.route_number %> Stop <%= route.stop_number %>";
var id = "<%= route.id %>";
<% end %>
But in Firebug
I'm getting this error in console.
SyntaxError: syntax error
[Break On This Error]
<% Route.all.each do |route| %>
^
Update: Turns out to be a firebug issue, works as intended but firebug will post as an error.
This is either related to your environment ("production" doesn't show detailed error and debug info)
Or related to firebug itself (god bless them, couldn't live without it)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With