gem

downgrading the gem coffee-script-source' from 1.9.1 to 1.8.0

无人久伴 提交于 2019-12-11 09:36:18
问题 I am getting this error: ExecJS::ProgramError in Welcome#indexExecJS::ProgramError in Welcome#index. According to others posts that happend because there is a problem with coffee-script-source 1.9.0/1 running on windows so I have to downgrade the gem with the command line: gem 'coffee-script-source', '1.8.0'. when I try to do this i get this error: ERROR: While executing gem ... (Gem::CommandLineError) Unknown command coffee-script-source, What I am doing wrong? 回答1: Put this line in your

Simple Rails 3 blog

微笑、不失礼 提交于 2019-12-11 08:55:56
问题 I have an app that I would like to add a blog to. I'd like to integrate it with my current site. I only have a few simple requirements: Being able to add formatting (headers, paragraphs, etc..) Adding images that can be embedded in the content. Categories That's it! I don't want to start from scratch, so a simple gem would be ideal. I don't want a big full featured blog because it will undoubtebly contain many things I don't need. Is there a gem that will allow me to add this functionality to

ruby-debug-base19-0.11.26.gem on WIN x64

帅比萌擦擦* 提交于 2019-12-11 08:14:23
问题 Info about my system: ruby -v -> ruby 1.9.3p125 (2012-02-16) [i386-mingw32] gem -v -> 1.8.24 when i'm running bundle install output: Fetching source index for http://rubygems.org/ Could not find ruby-debug-base19-0.11.26 in any of the sources the firewall is OFF I downloaded this file: ruby-debug-base19-0.11.26.gem but when i run: gem install ruby-debug-base19-0.11.26.gem outputs: Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR:

Breakpoint in Rails app

泪湿孤枕 提交于 2019-12-11 07:23:56
问题 I've been told by Mason Wendell that I can use Breakpoint in my application without Compass. I have gem 'breakpoint', '2.4.1' in my Gemfile and @import "breakpoint" in my application.css.sass but it fails to locate Breakpoint. Mason stated "Just get your import paths to find the _breakpoint.scss partial and you should be all set.". I'm a bit confused about how to actually do this. Any ideas? 回答1: There are two styles of using Sass dependencies: Fetch with RubyGems, apply with a pathless

Nitrous.IO - Installing rspec and it fails to install - An error occurred while installing nokogiri (1.6.0), and Bundler cannot continue

别来无恙 提交于 2019-12-11 05:46:09
问题 Here is the full error message I get Errno::ENOSPC: No space left on device - /home/action/.rvm/gems/ruby-2.0.0-p247/gems/nokogiri-1.6.0/ext/nokogiri/gem_make.out An error occurred while installing nokogiri (1.6.0), and Bundler cannot continue. Make sure that gem install nokogiri -v '1.6.0' succeeds before bundling.> I'm following the Ruby on Rails 3 tutorial and hoping to see what the rspec testing does but Nitrous.IO application doesn't allow me to install it. group :development do gem

Undefined Method `acts_as_messageable_messages_path`

巧了我就是萌 提交于 2019-12-11 05:36:15
问题 I'm using acts-as-messageable, a rails gem, in an app i have. However in my messages_controller i have def new @message = ActsAsMessageable::Message.new end and in my view i have <%= form_for(@message) do |f| %> which throws the following error undefined method `acts_as_messageable_messages_path' I'm not really sure why this is happening with the gem. 回答1: Try explicitly stating what path you want the form to point towards (which should be the messages#create action): <%= form_for(@message)

Could not find gem 'uglifier' in the current bundle

只谈情不闲聊 提交于 2019-12-11 05:14:30
问题 My simple web app runs ok on Windows 7. Now I am moving it to bluehost. Getting this error when starting the app: ActionView::Template::Error (cannot load such file -- uglifier Trying to resolve it I have run 'gem install uglifier' and seems to mostly work: SSH# gem install uglifier Successfully installed uglifier-1.3.0 1 gem installed Installing ri documentation for uglifier-1.3.0... unable to convert "\xC2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for README.md, skipping

How to debug Middleman 3 gem installation issues on Windows.

两盒软妹~` 提交于 2019-12-11 05:08:00
问题 I have installed Middleman 3.1.5 as described on my Windows 8 Machnine along with Ruby using rubyinstaller-2.0.0-p247.exe and followed the steps to get started with success. I am now building my first site with some success (coding some pages, starting the server, building the site) but when I try to use some advanced third party components like middleman-navigation or middleman-deploy I seem to hit a wall. At first I thought of a mistake by myself but as more and more things seem to be buggy

adapt impressionist gem to mongoid

走远了吗. 提交于 2019-12-11 04:44:28
问题 I'm trying adapt this gem, https://github.com/charlotte-ruby/impressionist to mongoid odm. I have been seeing the commit for mongo_mapper in https://github.com/tute/impressionist/commit/1c3f809da8ebd3ced8cb9bda8caee89012091a10. This is impression.rb model for mongoid: class Impression include Mongoid::Document include Mongoid::Timestamps::Created field :impressionable_type, :type => String field :impressionable_id, :type => String field :user_id, :type => String field :controller_name, :type

How to set up path for gems with the Fish shell?

梦想的初衷 提交于 2019-12-11 04:25:17
问题 How do I properly set up path for gems with the Fish shell? sanoy@nice-system ~/D/c/h/bellevue> gem install bundle WARNING: You don't have /home/sanoy/.gem/ruby/2.2.0/bin in your PATH, gem executables will not run. Successfully installed bundle-0.0.1 Parsing documentation for bundle-0.0.1 Done installing documentation for bundle after 0 seconds 1 gem installed sanoy@nice-system ~/D/c/h/bellevue> bundle install fish: Unknown command 'bundle' config.fish file set PATH </home/sanoy/.gem/ruby/2.2