rubygems

Redmine installation - ruby rails 2.3.11 manual download

杀马特。学长 韩版系。学妹 提交于 2019-12-25 02:14:51
问题 I am having a very hard time finding Rails 2.3.11 to download. I am trying to install this on Windows XP which Redmine 1.2.x requires this version. When I try to install the gem through the command prompt this is what I get: C:\>gem install rails -v=2.3.11 ERROR: Could not find a valid gem 'rails' (=2.3.11) in any repository ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ETIMEOUT: A connection attempt failed because the connected party ddi not properly respond after a

Rails App “Permission Denied” error when installing refinerycms

岁酱吖の 提交于 2019-12-25 01:49:58
问题 While trying to install refinery, a rails app, I keep getting the following error: ESL@new-host-2 ~$ refinerycms /Application/MAMP/htdocs/goodwatching create /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/fileutils.rb:247:in `mkdir': Permission denied - /Application (Errno::EACCES) from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/fileutils.rb:247:in `fu_mkdir' from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/fileutils.rb:221:in `block (2 levels) in mkdir_p' from /usr

Cannot install state_machines gem in Windows environment

两盒软妹~` 提交于 2019-12-24 22:26:40
问题 I am new to Rails and would like to check how Spree ecommerce solution looks like before the customization. That's why I installed Ruby from RubyInstaller, DevKit, Rails, Spree etc. During installation of state_machines gem, below error appears and the gem is eventually not installed. C:\>gem install state_machines ERROR: While executing gem ... (Errno::EINVAL) Invalid argument @ rb_sysopen - C:/Dev/Ruby/lib/ruby/gems/2.1.0/gems/state_m achines- 0.2.2/test/unit/node_collection/node_collection

Can't activate gem: how do I figure out which gem has a dependency on this one?

廉价感情. 提交于 2019-12-24 21:33:06
问题 I'm getting the following error: Gem::Exception: can't activate hpricot (= 0.6.161, runtime), already activated hpricot-0.8.3 0.6 is installed locally, 0.8.3 is frozen in my app. This is my "stacktrace": Loading production environment (Rails 2.3.10) /software/ruby-ror-gem-1.3.1/lib/rubygems.rb:149:in `activate':Gem::Exception: can't activate hpricot (= 0.6.161, runtime), already activated hpricot-0.8.3 /e/app/www.example.com/rails/releases/20101117142713/vendor/rails/railties/lib/console_with

ROR error with Salesforce: The requested resource does not exist

[亡魂溺海] 提交于 2019-12-24 19:31:04
问题 I am using the Ruby Gem "databascdotcom" to integrate Salesforce in a Rails app and all works fine. But getting following error on first call to salesforce: **The requested resource does not exist** If I refresh (Ctrl + F5) the page again, it works fine without any error. Here is my code: def SalesForceFeed @oppID = params[:oppid] client = Databasedotcom::Client.new client.client_id #=> foo client.client_secret #=> bar client.authenticate :username => "foo@bar.com", :password =>

Updating ruby version with Rbenv but gems apparently not updated

强颜欢笑 提交于 2019-12-24 19:26:25
问题 I have just updated Ruby from version 1.9.3-p448 to 1.9.3-p484 using rbenv on a Ubuntu Production server. The updating seems to be successful. Ruby version shows the latest version I just updated. However when I look at the gems for this version 1.9.3-p484 under the directory: .rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems . I only find a few gems in that directory. And when I looked at the directory of the previous version, there is a whole bunch of gems in there. Did I miss a step

Rails::Engine namespacing controller and models

别等时光非礼了梦想. 提交于 2019-12-24 18:59:53
问题 I followed the following tutorial: http://www.themodestrubyist.com/2010/03/05/rails-3-plugins---part-2---writing-an-engine/ And it all works great. I namespaced the controller using #app/controller/authr/accounts_controller.rb module Authr class AccountsController < ApplicationController unloadable def new @account = Account.new end def create @account = Account.new(params[:account]) if @account.save redirect_to '/' else render :action => :new end end end end And in the tutorial he didn't

therubyracer not installing on Windows

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 17:57:05
问题 When attempting to install gem I am getting following error C:\xampp\htdocs\mg>gem install therubyracer Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing therubyracer: ERROR: Failed to build gem native extension. C:/RailsInstaller/Ruby2.1.0/bin/ruby.exe -r ./siteconf20150527-5032-1urwkwd. rb extconf.rb creating Makefile The system cannot find the path specified. The system cannot find the path specified. The system

therubyracer not installing on Windows

浪尽此生 提交于 2019-12-24 17:56:01
问题 When attempting to install gem I am getting following error C:\xampp\htdocs\mg>gem install therubyracer Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing therubyracer: ERROR: Failed to build gem native extension. C:/RailsInstaller/Ruby2.1.0/bin/ruby.exe -r ./siteconf20150527-5032-1urwkwd. rb extconf.rb creating Makefile The system cannot find the path specified. The system cannot find the path specified. The system

Trying to call view from gem

喜你入骨 提交于 2019-12-24 16:41:50
问题 I'm just beginning working with Rails. Ive developed a ruby gem including views with some dynamic variables and i would like to call specific view from my rails project. Do you have any approach to do that please? Thanks for you help. 回答1: Hope the following will help with how to 'render' a view within the rails framework! http://guides.rubyonrails.org/layouts_and_rendering.html Also, with regard to getting a hold of the views in the gem, it looks like if you have the views stored with 'app