GithubHelp home page GithubHelp logo

Comments (12)

the-teacher avatar the-teacher commented on August 21, 2024

hm. ok.

Now gem based on twitter bootstrap tools. I think asset precompile need for Less, or some other components.

I think this can help to you:

Application Gemfile:

group :assets do
  gem 'sass-rails', ' ~> 3.1.0'
  gem 'coffee-rails', '~> 3.1.0'
  gem 'uglifier'

  # less for tw bootstrap
  gem  'therubyracer'
  gem 'less-rails'
end

from the_role.

the-teacher avatar the-teacher commented on August 21, 2024

Every morning I push to this project some fixes.
I will start application with production mode tomorrow.
I will try to find problem and put it into readme.

from the_role.

jhenderson avatar jhenderson commented on August 21, 2024

Thanks the-teacher.

By the way, I already tried putting 'therubyracer' and 'less-rails' inside the assets group, but it still didn't work.

Trying to figure out a solution...

from the_role.

the-teacher avatar the-teacher commented on August 21, 2024

same problem was with rails_admin

What about this variant?

# less for tw bootstrap
gem  'therubyracer'
gem 'less-rails'

group :assets do
  gem 'sass-rails', ' ~> 3.1.0'
  gem 'coffee-rails', '~> 3.1.0'
  gem 'uglifier'
end

from the_role.

jhenderson avatar jhenderson commented on August 21, 2024

No difference I'm afraid.

from the_role.

the-teacher avatar the-teacher commented on August 21, 2024

I will play with it tomorrow. I hope problem will be solved.

Yes, I know - I should to remove any less dependencies. I need few days.

Thank you for your issue. It's very important for me.

from the_role.

the-teacher avatar the-teacher commented on August 21, 2024

By the way, maybe you can check En locale?

My english is terrible =) Only google helps me to say something well.

from the_role.

jhenderson avatar jhenderson commented on August 21, 2024

It just occurred to me that I might need to add the admin_the_role.js and admin_the_role.css to my precompile list in the staging.rb and production.rb. For example:

config.assets.precompile += %w( admin_the_role.js admin_the_role.css)

However, when I try and compile the assets I get:

couldn't find file 'role_set'
(in /.../gems/the_role-1.6.5/app/assets/stylesheets/admin_the_role.css:6)

from the_role.

the-teacher avatar the-teacher commented on August 21, 2024

=( assets pipeline make my day!

from the_role.

the-teacher avatar the-teacher commented on August 21, 2024

role_set it's less file with bootstrap css components. Unfortunatly I can't try it by myself and can't help you. Sorry.

from the_role.

the-teacher avatar the-teacher commented on August 21, 2024

v 1.6.8

No more dependencies of Bootstrap, Less, Coffee. Just pure JS and CSS for admin section.

https://github.com/the-teacher/the_role#assetspipline

https://github.com/the-teacher/the_role#change-your-applicationcontroller

Tested in production mode with https://github.com/the-teacher/devise2_on_the_role

Reopen if it's need

from the_role.

the-teacher avatar the-teacher commented on August 21, 2024

I test asset:precompile behaviour today.

I have problems with files precompiling for rails 3.1.0 , but when I updated rails version to 3.2.6 precompiling problems are gone.
I was surprised.

And I need check styles for admin section. It can has some problems, but I am not sure.

from the_role.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.