Yellowen / admin_lte-rails

Gemified version of AdminLTE, with LTR, RTL and SASS/SCSS support
MIT License
27 stars 10 forks source link

How use this source in asp mvc? #6

Open Rgl88 opened 8 years ago

Rgl88 commented 8 years ago

Hello How use this source in asp.net mvc?

lxsameer commented 8 years ago

Hi, You need to get the source code, and install it's dependencies using bundle install (assuming you have ruby installed) and then execute rake convert in your source tree to fetch and convert the latest AdminLTE code. then you can copy and paste the stylesheets and javascripts files under app directory to your project and use them. Remember you need sass compiler to compile sass files to css.

Rgl88 commented 8 years ago

Hi , i can not run bundle install, can you convert your project for windows users, thank you After search in google, i can not find solution for solve this problem. C:\admin_lte-rails>bundle install Warning: this Gemfile contains multiple primary sources. Using source more than once without a block is a security risk, and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the secondary source. To upgrade this warning to an error, run bundle config disable_multisource true. Fetching source index from http://rails-assets.org/ Retrying fetcher due to error (2/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for http://rails-assets.org/. There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'. Retrying fetcher due to error (3/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for http://rails-assets.org/. There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'. Retrying fetcher due to error (4/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for http://rails-assets.org/. There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'. Could not verify the SSL certificate for http://rails-assets.org/. There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.

lxsameer commented 8 years ago

I'm aware of this situation, I'll fix it later, and about the SSL problem all you have to do is to change the source or use a proxy.

Anyoks commented 8 years ago

Hi.

I'm on rails. I've installed the gem and done bundle install. What's next after that? How do I apply a skin?

where do I run rake convert? running it in my projects root says rake aborted! Don't know how to build task 'convert' . Also copying code from Admin LTE docs does not apply the admin LTE stylesheets at all. did I miss something?

lxsameer commented 8 years ago

On rails you don't need to convert anything. Just add the proper path to your assets manifests and follow the AdminLTE instructions for skins.

lxsameer commented 8 years ago

just add the css class to the body tag. Make sure to include the skin on the stylesheet manifest

Anyoks commented 8 years ago

Thank you. Let me make my question a bit clearer. The only unclear thing is, in the gem I see the skins are already preloaded. My question is this, do I need to add *= require admin_lte/skins/skin-blue or something like that in my application.css? in order to apply the skin? how do I load the desired skin is my question.

I say this because even after adding the right class in the body tag, the appropriate stylesheets are not loaded.

lxsameer commented 8 years ago

As I mentioned earlier, yes you need to include the skin's stylesheet too

Anyoks commented 8 years ago

The question is How do you include the skin's stylesheet??