1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Less::ParseError in Products#index

Showing /home/mas/rails_projects/store/app/views/layouts/application.html.erb where line #5 raised:

error evaluating function `asset-path`: undefined method `toCSS' for [object Object]:V8::Object
  (in /home/mas/rails_projects/store/app/assets/stylesheets/bootstrap_and_overrides.css.less)

Extracted source (around line #5):

2: <html>
3: <head>
4:   <title>Store</title>
5:   <%= stylesheet_link_tag    "application", :media => "all" %>
6:   <%= javascript_include_tag "application" %>
7:   <%= csrf_meta_tags %>
8: </head>

Rails.root: /home/mas/rails_projects/store
Application Trace | Framework Trace | Full Trace

app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___368287244987031604_16724740'
app/controllers/products_controller.rb:7:in `index'

Request

Parameters:

None

Show session dump

Show env dump
Response

Headers:

None

bootstrap_and_overrides.css.less (store)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@import "twitter/bootstrap/bootstrap";
body { padding-top: 60px; }

@import "twitter/bootstrap/responsive";

// Set the correct sprite paths
@iconSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings.png');
@iconWhiteSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings-white.png');

// Your custom LESS stylesheets goes here
//
// Since bootstrap was imported above you have access to its mixins which
// you may use and inherit here
//
// If you'd like to override bootstrap's own variables, you can do so here as well
// See http://twitter.github.com/bootstrap/less.html for their names and documentation
//
// Example:
// @linkColor: #ff0000;