gems

cannot load such file ― 1.9/bcrypt_ext (LoadError)

匿名 (未验证) 提交于 2019-12-03 01:31:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Hey I get the following Error when i try to start the rails server Any ideas? At the moment no possible solution worked... By the way I run Windows 8... might be the problem at all :D C : /RailsInstaller/ Ruby1 . 9.3 / lib / ruby / gems / 1.9 . 1 / gems / activesupport - 3.2 . 11 / lib / active_support / dependencies . rb : 251 : in `require': cannot load such file -- 1.9/bcry pt_ext (LoadError) from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in ` block in

SQLite3 Error - cannot rollback - no transaction is active

匿名 (未验证) 提交于 2019-12-03 01:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: SOLVED (see below) When I'm trying to create or destroy a record (running on SQLite3) in my Ruby on Rails app (or in console as well) I'm getting an SQL Exception: irb(main):014:0> ApiCache.all => [] irb(main):015:0> ApiCache.create(:hash => 'qwe', :contents => 'asd') SQLite3::SQLException: cannot rollback - no transaction is active from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/sqlite3-1.3.3-x86-mingw32/lib/sqlite 3/database.rb:97:in `close' from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/sqlite3-1.3.3-x86-mingw32/lib

List of installed gems?

匿名 (未验证) 提交于 2019-12-03 01:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is there a Ruby method I can call to get the list of installed gems? I want to parse the output of gem list . Is there a different way to do this? 回答1: The Gem command is included with Ruby 1.9+ now, and is a standard addition to Ruby pre-1.9. require 'rubygems' name = /^/i dep = Gem::Dependency.new(name, Gem::Requirement.default) specs = Gem.source_index.search(dep) puts specs[0..5].map{ |s| "#{s.name} #{s.version}" } # >> Platform 0.4.0 # >> abstract 1.0.0 # >> actionmailer 3.0.5 # >> actionpack 3.0.5 # >> activemodel 3.0.5 # >>

Can't migrate database after scaffold. Section 2.2 Ruby on Rails Tutorial Michael Hartl

匿名 (未验证) 提交于 2019-12-03 01:27:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm working through the Hartl ruby on rails tutorial (section 2.2), and I'm having trouble migrating the database. Everything seemed to be working, and then I ran rails generate scaffold User name:string email:string Afterwards I tried to run bundle exec rake db:migrate and got the below error message: $ bundle exec rake db:migrate == 20141125234257 CreateUsers: migrating ====================================== -- create_table(:users) -> 0.0079s == 20141125234257 CreateUsers: migrated (0.0080s) ============================= rake aborted!

On Migration: undefined method `to_sym' for nil:NilClass

匿名 (未验证) 提交于 2019-12-03 01:27:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm running Rails 3.0.3 and I accidentally made a typo in my migration: I created a migration that creates a new column with a type of boolen (it should have been boolean ). I ran the migration and Rails didn't warn me that this was an invalid type of column, which I could have sworn it did in previous versions? Now whenever I try to add, remove, or modify anything in a migration I get the following error: undefined method `to_sym' for nil:NilClass I can't even rollback or drop. I have an earlier version of the database and file

ExecJS::ProgramError: Unexpected character '#'

匿名 (未验证) 提交于 2019-12-03 01:26:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to deploy to Heroku and I am met with this error. I've done some research and tried uninstalling and reinstalling some gems after looking at relevant posts but I'm not really sure what's wrong here as I am not familiar with what the actual problem is. Please help! What should I do? So far I'm thinking it has something to do with the jquery. ExecJS::ProgramError: Unexpected character '#' (line: 13912, col: 0, pos: 394110) remote: Error remote: at new JS_Parse_Error (/tmp/execjs20150204-1143-zrnj29js:2359:10623) remote: at js_error

rails error method_missing': undefined method `this' for Gem::Specification

匿名 (未验证) 提交于 2019-12-03 01:25:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I follow this tutorial: https://guides.spreecommerce.com/developer/getting_started_tutorial.html#installing-image-magick When I write jonstark@jonstark-pc:~/rails_projects/optima1$ spree install --auto-accept I got this: /home/jonstark/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/specification.rb:2158:in `method_missing': undefined method `this' for # (NoMethodError) from /home/jonstark/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/specification.rb:1057:in `find_active_stub_by_path' from /home/jonstark/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3

Address already in use - bind(2) (Errno::EADDRINUSE)

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to deploy Rails app with the Puma web server. When trying to start Puma server with a config file bundle exec puma -C config/puma.rb I get an error that the address is already in use. Does someone know how to fix this? bundle exec puma -C config/puma.rb [23699] Puma starting in cluster mode... [23699] * Version 2.11.3 (ruby 2.0.0-p353), codename: Intrepid Squirrel [23699] * Min threads: 5, max threads: 5 [23699] * Environment: development [23699] * Process workers: 2 [23699] * Preloading application Jdbc-MySQL is only for use

TypeError: Object doesn't support this property or method

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have created rails application where I created a database (empty). When I try to view my products page, I receive the following error on my http://localhost:3000/products page. Before migrating the database, the application did function. I am using therubyracer and am on Windows 7. ExecJS::ProgramError in Products#index Showing C:/RailsInstaller/DevKit/home/JP/nameofapp/app/views/layouts/application.html.erb where line #16 raised: TypeError: Object doesn't support this property or method (in C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0

Heroku push error: “NameError: uninitialized constant Uglifier::VERSION” on rake assets:precompile

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm receiving the following error when trying to push to production. Here's the result of the push: $ git push production master Counting objects: 124, done. Delta compression using up to 4 threads. Compressing objects: 100% (118/118), done. Writing objects: 100% (124/124), 19.73 KiB | 0 bytes/s, done. Total 124 (delta 66), reused 1 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Ruby app detected remote: -----> Compiling Ruby/Rails remote: -----> Using Ruby version: ruby-2.2.2 remote: ----