Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"cannot load such file -- less" #10

Open
micmmakarov opened this issue Dec 4, 2012 · 5 comments
Open

"cannot load such file -- less" #10

micmmakarov opened this issue Dec 4, 2012 · 5 comments

Comments

@micmmakarov
Copy link

Hi, trying to run it and getting an error:

LoadError in Uploads#index

Showing /rails/jquery-fileupload-rails-paperclip-example/app/views/layouts/application.html.erb where line #5 raised:

cannot load such file -- less
(in /rails/jquery-fileupload-rails-paperclip-example/app/assets/stylesheets/bootstrap_and_overrides.css.less)
Extracted source (around line #5):

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

@zsll
Copy link

zsll commented Jan 31, 2013

Got the same issue.

@morkevicius
Copy link

+1
fix:
missing gems for twitter-boostrap-rails:
gem 'therubyracer'
gem 'less-rails'

after to fix broken css, rails g bootstrap:install -f.

@jshakespear
Copy link

Thanks morkevicius. I was scratching my head for awhile.

@mikenk2010
Copy link

Add gem 'less' in group :assets do

group :assets do
.
.
.
gem 'less'
.
.
end

@hailjake
Copy link

just remove the stylesheet from your asset pipeline and add this code to your main css,less file your gonna wanna control the style anyways

.fileinput-button {
position: relative;
overflow: hidden;
}
.fileinput-button input {
position: absolute;
top: 0;
right: 0;
margin: 0;
opacity: 0;
-ms-filter: 'alpha(opacity=0)';
font-size: 200px;
direction: ltr;
cursor: pointer;
}

/* Fixes for IE < 8 */
@media screen\9 {
.fileinput-button input {
filter: alpha(opacity=0);
font-size: 100%;
height: 100%;
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants