How to remove bootstrap in Volt, the new ruby framework - voltrb

I'm getting this error while trying to launch the server.
/home/action/.gem/ruby/2.1.1/gems/volt-0.8.26/lib/volt/server/rack/asset_files.rb:38:in `component': Unable to find component 'bootstrap', make sure the gem is included in your Gemfile (RuntimeError)
I removed these two gems:
gem 'volt-bootstrap'
gem 'volt-bootstrap-jumbotron-theme'strong text**

If you look in app/main/config/dependencies.rb you'll see
component 'bootstrap'
Just remove that. Check out the docs on components for more information.

Related

When install bundle,failed to install sass?

When install bundle, error messages always displayed.
As when you execute the order of installing bundle every time,they will show you the one error info.
Now when installed sass,the error information is “ While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
no such name (https://ruby.taobao.org/quick/Marshal.4.8/sass-3.4.22.gemspec.rz)”.
I’m new here,so hope get everyone’s help.Thank you so much in advance…...
you dont have the correct source for your gems: change:
gemfile
source 'https://rubygems.org'

Way to add gem file to Dashing framework

I need to use Rally API dev kit rally_rest_api gem. I'm new with ruby. Is the any way to do it quickly ?
Thanks for helping !
You should have a file called Gemfile in the root of your Dashing project. It should already contain the dashing gem itself:
gem 'dashing'
Simply add the following below it:
gem 'rally_rest_api'
And run bundle install. To actually use the gem in your project, take a look at the documentation.

How to use gem from GitHub on Heroku?

I've forked the redis depository on github to https://github.com/lmirosevic/redis-rb
I added it to my Gemfile:
gem 'redis', :github => 'lmirosevic/redis-rb'
And I require the gem inside my Sinatra app:
require 'redis'
However it fails with the following error:
/app/vendor/ruby-2.0.0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- redis (LoadError)
Any suggestions on what could be wrong? It seems like it should work!
EDIT
I should note that the bundler phase is fine. The problem seems to be in the require step.
Bundler gives me this output:
Using redis (3.0.4) from git://github.com/lmirosevic/redis-rb (at master)
I should also say that my directory structure is something like this. Not sure if this makes a difference.
/
.env
Gemfile
Gemfile.lock
Procfile
/lib
my_sinatra_app.rb
/config
...
You must have
require 'bundler/setup'
in your app or else you're not really using bundler: this is what ensures that the gem versions loaded are the ones in your gemfile and sets up load paths for anything not installed globally.
Calling Bunder.setup allows you to control what groups are used, but if just using the default group is fine then you don't need to do this.
If you aren't setting up bundler then your gemfile is used to install the required versions of the gems but then bundler is no longer used - your app will used whatever gems are installed, whether the versions match or not and you won't be able to use gems that aren't installed in the default gem load paths.

Ruby on Rails view

I am new in ruby on rails. I was trying to check some code. I copied all folders of an existing project from my friends and pasted them to a newly created project at my machine. And also changed the config file. It shows following error:
*Template is missing
Missing template movies/index, application/index with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :coffee]}. Searched in: * "../Software Engineering for Software as a Service/Software/Project/rottenpotatoes/app/views"*
Some one suggested me that it is because haml is not installed, i installed haml by "gem install haml" but it still shows the same message. Can any one help me?
If rails had access to the HAML gem it would show HAML as a handler in that error. Your error does not. It's possible you need to restart your rails server.
You should be using the Gemfile for managing gems, though. Add gem 'haml' to your Gemfile. Go to your console and cd to the application directory. Run bundler to install the gems with the bundle command. Restart your rails server.

Manually adding a Ruby Gem

I am trying to install the mechanize gem that is supposed to work with 1.9 from here: http://github.com/kemiller/mechanize but I do not know how to add it manually.
I am using Windows, I could just copy the folder to the gems directory, but how do I initialize it?
I'm not sure I understand the problem. gem install mechanize doesn't work? It produces version 0.9.3 for me, which matches the gemspec of the library you linked to.
EDIT: you're on 1.9. I knew that. Disregard my hasty post, not familiar enough with Windows to offer any help on building the extensions.
I would use the bundler gem using the command gem install bundler. This will create a file called Gemfile in your project directory where you can put your dependencies for the specific project that you are working on. In the Gemfile, you will need to specify gem mechanize. If you want a specific version include ~> VERSION after. After, run the command bundle install. This will install the gem you want and use it in your project.

Resources