ruby-on-rails,ruby,ruby-on-rails-3,nokogiri,rails-consoleRelated issues-Collection of common programming errors


  • lawrencesloan
    ruby-on-rails heroku push master
    How’s it going hub. L here again with another n00b query. I’m going through the Learn Rails Tutorial and I’m on step 1.4.2. When i enter: C:\Sites\rails_projects\first_app> git push heroku masterThe system return:!Timed out compiling Ruby/Rails app (15 minutes) !See https://devcenter.heroku.com/articles/slug-compiler#time-limitTo [email protected]:gentl-hamlet-4079.git ![remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to ‘[email protected]:gentle-ham

  • Peter Mortensen
    architecture ruby-on-rails node.js rewrite
    Please tell me if:Node.js will make our site faster! Node.js will consume fewer server resources, we can save money! Node.js will make us more productive! Node.js means we can share client and server side JavaScript code.To clarify, we’re rewriting a frontend server, which will talk to our existing Ruby on Rails application as an API. Meanwhile, we’ll refactor our Ruby on Rails application into services.More details on the existing architecture:Memcached for HTML partials caching Redis for sessi

  • airlok
    ruby-on-rails ruby ubuntu rvm linkparser
    I am using rvm, ruby 1.9.3, link-grammar (sudo apt-get install link-grammar), and pkg-config. I have the same setup on OSX, and it works great.Running ‘gem install linkparser’ fails on this:/usr/local/include/link-grammar/link-includes.h:16:36fatal error: link-grammar/api-types.h: No such file or directoryI’ve tried installing link-grammer manually as well, then running:gem install linkparser — –with-link-grammar=/usr/local gem install linkparser — –with-link-grammar=/usr/share gem install l

  • jackerman09
    ruby-on-rails git heroku
    I have been working on this rails project for weeks (it is deployed using Heroku), pushing to GitHub frequently without a problem. I am now getting this error:error: The requested URL returned error: 504 while accessing https://github.com/my_git_name/my_repository_name.git/info/refs?service=git-receive-pack fatal: HTTP request failedAny idea what might be causing this? Thanks!

  • bharath
    ruby-on-rails git rubygems bundler ruby-on-rails-3.2
    I Have This in my GemFilesource ‘https://rubygems.org’gem ‘rails’, ‘3.2.3’# Bundle edge Rails instead: # gem ‘rails’, :git => ‘git://github.com/rails/rails.git’gem ‘sqlite3’gem “nested_form”, :git => “https://github.com/ryanb/nested_form.git” gem ‘lazy_high_charts’, :git => “https://github.com/michelson/lazy_high_charts.git”# Gems used only for assets and not required # in production environments by default. group :assets dogem ‘sass-rails’, ‘~> 3.2.3’gem ‘coffee-rails’, ‘~> 3.

  • cjm2671
    ruby-on-rails ruby rescue
    I’m trying to run a command that might fail sometimes. When it fails, it throws an exception.What I’d like it to do is just log the error quietly and continue executing the next line below it, rather than aborting and going into the ‘rescue’ block. How should I approach this?My current code is as follows:rescue_from ‘Gibbon::MailChimpError’ do |exception|logger.error(“MAILCHIMP: #{exception}”)endWhen I call the Mailchimp API, sometimes there is an error, and this disrupts the flow of my applicat

  • dachi
    ruby-on-rails git openshift
    When trying to clone my Rails application via Git, I am geting:Cloning into ruby… ssh: Could not resolve hostnameruby-xxxxxxxxx.rhcloud.com: nodename nor servname provided, or notknown fatal: The remote end hung up unexpectedlyFor this, I am running the following command:$ git clone ssh://[email protected]/~/git/ruby.git/I can access the app from the web console & have installed the rhc gem & the set up was successful.Anybody know what I can do to try

  • stefkas
    ruby-on-rails git heroku push
    When I git push on heroku, I receive this fatal: Not a git repository (or any of the parent directories): .git error many times. Everything works fine in my application and the push completes normally. I just wonder why this happens. I also see the same message 4-5 times in my logs in heroku, when a scheduler task runs. Any idea? Thanks!git push staging masterCounting objects: 41, done. Delta compression using up to 4 threads. Compressing objects: 100% (21/21), done. Writing objects: 100% (21/2

  • Zack
    ruby-on-rails ruby shell heroku
    Im getting a fatal error in my Ruby and Rails Command Line when I try to bundle install –without productionfor Heroku.I’m following the instructions here: http://installfest.railsbridge.org/installfest/create_and_deploy_a_rails_appThis step is in 7.2. Everything was working fine until this. Can anyone point me in the right direction as to why this is failing?It says something along the lines of ‘group’ no block given (yield) (LocalJumpError)ThanksEdit: Gemfilesource ‘https://rubygems.org’# Bun

  • Bram Jetten
    javascript ruby-on-rails debian v8
    I’m trying to deploy my Rails app to a new VPS which runs with Debian. I’m using Nginx and Phusion Passenger as my server.I’ve installed Node.js as a JavaScript runtime. Sadly I’m seeing the following error message:Fatal error in v8::V8::AddGCPrologueCallback() V8 is no longer usableEdit:It is fixed now. Apparently gr security was causing the error.

  • nikolashaD
    ruby qt qt4 fedora korundum
    I am trying to install korundum on fedora 17. And during the $ make phase I got the following error:In file included from /usr/include/ruby.h:32:0,from Qt.cpp:49: /usr/include/ruby/ruby.h:24:25: fatal error: ruby/config.h: No such file or directory compilation terminated. make[5]: *** [Qt.lo] Error 1 make[5]: Leaving directory `/home/n/Downloads/korundum-3.5.5/qtruby/rubylib/qtruby’ make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/n/Downloads/korundum-3.5.5/qtruby/rubylib/q

  • airlok
    ruby-on-rails ruby ubuntu rvm linkparser
    I am using rvm, ruby 1.9.3, link-grammar (sudo apt-get install link-grammar), and pkg-config. I have the same setup on OSX, and it works great.Running ‘gem install linkparser’ fails on this:/usr/local/include/link-grammar/link-includes.h:16:36fatal error: link-grammar/api-types.h: No such file or directoryI’ve tried installing link-grammer manually as well, then running:gem install linkparser — –with-link-grammar=/usr/local gem install linkparser — –with-link-grammar=/usr/share gem install l

  • Michael Mrozek
    packaging ruby
    When I try to use bundler, I get the error:/home/vivek/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require’: cannot load such file — openssl (LoadError)The complete error message is below. How do I fix this?Fetching gem metadata from https://rubygems.org/.Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Please include the full output of

  • JohnnyD.
    server ruby
    I updated my system and I needed to start is again, but after the starting:x is not started there is a massage on the tty1:Faraday: you may want to install system_timer for reliable timeouts/var/lib/gems/1.8/gems/oauth2-0.7.1/lib/client.rb:43: warning: method redefined, discarding old site=/var/lib/gems/1.8/gems/oauth2-0.7.1/lib/client.rb:43: warning: method redefined,discarding old connection/usr/lib/ruby/openplacos/server/Publish.rb:52:in ‘dbus_regul_iface’ : undefined method ‘singleton_class

  • cjm2671
    ruby-on-rails ruby rescue
    I’m trying to run a command that might fail sometimes. When it fails, it throws an exception.What I’d like it to do is just log the error quietly and continue executing the next line below it, rather than aborting and going into the ‘rescue’ block. How should I approach this?My current code is as follows:rescue_from ‘Gibbon::MailChimpError’ do |exception|logger.error(“MAILCHIMP: #{exception}”)endWhen I call the Mailchimp API, sometimes there is an error, and this disrupts the flow of my applicat

  • 0xSina
    ruby multithreading
    I have this simple ruby code:require ‘rubygems’ require ‘Thread’queue = Queue.newt = Thread.new doloop douser = queue.popputs “Unqueued #{user.nickname}, running all scripts…”#do stuffuser.run_allputs “Finished running all script for #{user.nickname}, sleeping for 2″sleep 2queue << user end endt.joinWhen I try to run it, it gives me this error:deadlock 0x10ec549f0: sleep:- – ./Machine.rb:9 deadlock 0x10ea46348: sleep:J(0x10ec549f0) (main) – ./Machine.rb:23 fatal: Thread(0x10ea46348)

  • Zack
    ruby-on-rails ruby shell heroku
    Im getting a fatal error in my Ruby and Rails Command Line when I try to bundle install –without productionfor Heroku.I’m following the instructions here: http://installfest.railsbridge.org/installfest/create_and_deploy_a_rails_appThis step is in 7.2. Everything was working fine until this. Can anyone point me in the right direction as to why this is failing?It says something along the lines of ‘group’ no block given (yield) (LocalJumpError)ThanksEdit: Gemfilesource ‘https://rubygems.org’# Bun

  • Aldian
    ruby
    I am having a hard time with bug logstash#665. Hope they will fix it some day, but sparc/solaris support is probably not on top of their priority list. For further reference, original error is:NotImplementedError: stat.st_dev unsupported or native support failed to load dev_major at org/jruby/RubyFileStat.java:190 _discover_file at /tmp/aaaa/logstash-1.4.1.dev/vendor/bundle/jruby/1.9/gems/filewatch-0.5.1/lib/filewatch/watch.rb:140After digging a lot I found out that the problem here is the usage

  • OrangeTux
    ruby
    I can not install compass version 1.$ ruby -v ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]And when I do:$ sudo gem install compass –preI get following error:Building native extensions. This could take a while… ERROR: Error installing compass: ERROR: Failed to build gem native extension./usr/bin/ruby1.9.1 extconf.rb /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require’: cannot load such file — mkmf (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `re

  • Greg W
    ruby-on-rails ruby applescript daemon osascript
    I have a need to frequently run an applescript on my web server. As the server is running rails, and I need access to my models before and after running the script, I thought that a daemon (via the daemons gem) might be appropriate.In theory this is fairly easy. Below is a simplified example. #!/usr/bin/env rubyENV[“RAILS_ENV”] ||= “development”require File.dirname(__FILE__) + “/../../config/application” Rails.application.require_environment!$running = true Signal.trap(“TERM”) do $running = f

  • simo
    ruby-on-rails-3 postgresql ruby-on-rails-3.1 ubuntu-11.10
    I am running my development on Ubuntu 11.10, and RubyMineHere is my development settings for the database.yml: which RubyMine created for medevelopment:adapter: postgresqlencoding: unicodedatabase: dcaclab_developmentpool: 5username: dcaclabpassword:when I try to run the app, I get this error below, it seems that I didn’t create a ‘dcaclab’ user yet, but, how can I create a user and grant it a database in postgres ? if this is the problem, then, what is the recommended tool to use in Ubuntu for

  • abaker
    ruby-on-rails ruby-on-rails-3 heroku rake
    When pushing to heroku, using a cleardb mysql db, heroku breaks when precompiling assets.I’ve added config.assets.initialize_on_precompile = false to my application.rb file. Its also in my enviroment/staging.rb & production.rb file. I’ve added the cleardb url to DATABSE_URL config variable as mysql2 url.I have a staging environment that I can push just fine, dont understand what is going onIve added the heroku output below:Your bundle is complete! It was installed into ./vendor/bundleClea

  • Bernardo Dias
    ruby-on-rails ruby-on-rails-3 gem therubyracer
    I’m trying to install:gem “twitter-bootstrap-rails”, :group => :assetsBut when I use bundle install, it’s happened:$ bundle install Fetching gem metadata from https://rubygems.org/……. Using rake (0.9.2.2) Using i18n (0.6.1) Using multi_json (1.3.6) Using activesupport (3.2.8) Using builder (3.0.2) Using activemodel (3.2.8) Using erubis (2.7.0) Using journey (1.0.4) Using rack (1.4.1) Using rack-cache (1.2) Using rack-test (0.6.1) Using hike (1.2.1) Using tilt (1.3.3) Using sprockets (2.1.

  • Ezra Okon
    ruby-on-rails ruby-on-rails-3 eventmachine
    I am trying to install the gem EventMachine on Windows 8 (using Ruby 1.9.3 with RubyInstaller) via bundle, but I get the following error. None of the previous solutions posted here worked for me. I greatly appreciate any help in advanceC:\Sites\routes_controller_exercise>bundle install Fetching gem metadata from https://rubygems.org/……….. Fetching gem metadata from https://rubygems.org/.. Resolving dependencies… Using rake (0.9.2.2) Using i18n (0.6.0) Using multi_json (1.3.6) Using a

  • Rails beginner
    ruby-on-rails ruby ruby-on-rails-3
    When I run the command ruby billede.rb in my lib folder in rails I get the error:C:\Rails\myapp\lib>ruby billede.rb C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require’: no such file to load — RMagick (LoadError)from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i n `require’from billede.rb:2:in `<main>’My Billede.rb:class Billede require ‘rubygems’ require ‘RMagick’if !ARGV[0]puts “Usage: watermark /image.png”exit endimage = Magick::Image.

  • Yak
    ruby-on-rails ruby-on-rails-3 heroku gem bundler
    Suddenly can’t push to Heroku! the error message says:uninitialized constant Haml::Util::Sass(Same exact code and libraries that worked fine until 2 days ago!)Compilation apparently failing on this line of application.rb:Bundler.require(*Rails.groups(:assets => %w(development test)))When compilation is attempted I get this:Could not detect rake tasks ensure you can run $ bundle execrake -P against your app with no environment variables present andusing the production group of your Gemfi

  • Ali
    mysql ruby-on-rails-3 gem capistrano bundler
    Hi guys I’ve been trying to deploy my application using capistrano. However I’m getting the following error consistently and have no idea on how to resolve it.* executing “cd /var/www/html/mysite.com/releases/20130224075438 && bundle install –gemfile /var/www/html/mysite.com/releases/20130224075438/Gemfile –path /var/www/html/mysite.com/shared/bundle –deployment –quiet –without development test”servers: [“166.78.22.204”][166.78.22.204] executing command** [out :: 166.78.22.204] Gem:

  • Mike
    ruby-on-rails ruby-on-rails-3 bundle bundler libv8
    i am trying to pack gems in vendor folder,so when i used bundle install –path vendor,i got error as[root@localhost myapp]# bundle install –path vendor Fetching source index for http://rubygems.org/ /usr/local/rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler.rb:209: warning: Insecure world writable dir /home/developer in PATH, mode 040777 Using rake (10.1.0) Using multi_json (1.2.0) Using activesupport (3.1.10) Using builder (3.0.4) Using i18n (0.6.5) Using activemodel (3.1.

  • JakeP
    ruby-on-rails ruby ruby-on-rails-3 twitter-bootstrap
    I’m working with a project that uses twitter-bootstrap-rails. This project was built on a Linux box, and used therubyracer as a javascript runtime. I’ve been running into issues because therubyracer doesn’t seem to get along with Windows. therubyracer gem on windowsRight now I’m trying to “bundle update”; “therubyracer” is choking things up.I think I should be able to lean on JScript. How do I tell bundler to ignore this, without digging into each gem and manually removing its dependency on

  • Ava
    ruby-on-rails-3 rubygems rubymine cookbook
    I am trying to import a folder(open directory) on Ruby Mine but when I do it says “Install missing gems” Everytime I click on it, it installs some and then again gives the same error. I have Mac OS X 10.7.Here is the error:/Users/Vinisa/.rvm/rubies/ree-1.8.7-2011.03/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/Vinisa/.rvm/gems/ree-1.8.7-2011.03/bin/bundle install Fetching source index for http://rubygems.org/ Using rake (0.9.2) Using multi_json (1.0.3) Using activ

  • ishkildin
    ruby git bundler nokogiri
    Trying to run Ruby+MongoDb project from Github. Making it happen through README instructions . Get stack when run command “bundle install –path=.bundle “. It argues on “nokogiri -v ‘1.5.0’”. Says that it is impossible to install all the dependencies from Gemfile.Need to run https://github.com/ai/dis.spbstu.ru on newly installed Ubuntu 13.10 x86Previously installed through apt-get install:git Ruby1.9.1 libxml2-dev libxslt1-dev mongodbNot availiable to install, but needed in README file:Ruby1

  • the Tin Man
    ruby-on-rails ruby bundler nokogiri libxml2
    On a clean install of Mac OS 10.9, jumping from 10.7.5, I seem incapable of installing the libxml-ruby gem. I use Homebrew and RVM to manage my environment, and I’ve installed the following things:brew listapple-gcc42 gcc46 libmpc08 mpfr2 postgresql autoconf gmp4 libtool mysql55 ppl011 automake libgpg-error libxml2 openssl readline cloog-ppl015 libiconv libxslt ossp-uuid wget cmake libksba libyaml pkg-configEntering brew do

  • Sudo Pod
    ruby-on-rails ruby bundler nokogiri
    In Max OS X Mountain Lion (10.8.3): I’m following the railstutorial.org tutorial, and on chapter 3 we started to include “gem ‘rspec-rails’, ‘2.11.0’” in the gemfile. Since then I can’t seem to get ‘bundle update’ to work in my application because it’s trying to install nokogiri, which doesn’t like me…why?This is what happens in console when I runbundle updateFetching gem metadata from https://rubygems.org/……… Fetching gem metadata from https://rubygems.org/.. Resolving dependencies…

  • phil swenson
    ruby gem bundler nokogiri
    I can SUCCESSFULLY install nokigiri using sudo gem install nokogiri — –with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2 –with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/lib –with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28 –with-iconv-include=/usr/local/Cellar/libiconv/1.14/include –with-iconv-lib=/usr/local/Cellar/libiconv/1.14/libhowever when I run “bundle install” I have libxml2 problems. My question is: how do I get nokogiri to install via bundler?here is my “bundle ins

  • user2451418
    ruby gem nokogiri
    I want to install gitlab an therefore I need to install some gems. Thereby I get the following error:Installing nokogiri (1.5.9) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension./usr/bin/ruby extconf.rb checking for libxml/parser.h… yes checking for libxslt/xslt.h… yes checking for libexslt/exslt.h… yes checking for iconv_open() in iconv.h… yes checking for xmlParseDoc() in -lxml2… yes checking for xsltParseStylesheetDoc() in -lxslt… yes checking for e

  • Jakub Hampl
    ruby rubygems nokogiri macruby
    The latest MacRuby release notes (v0.6) state that the authors have managed to get this release working with the SQLite and Nokogiri gems. However when I run sudo macgem install nokogiri I get the following errors:ERROR: Error installing nokogiri:extconf failed:and then a bunch of paths followed by:libxml2 is missing. try ‘port install libxml2’ or ‘yum install libxml2’ /Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/nokogiri-1.4.1/ext/nokogiri/extconf.rb:1:in `&

  • the Tin Man
    ruby osx nokogiri libxml2 osx-mavericks
    I upgraded my OSX (Lion) to Mavericks and I can’t install Nokogiri for my projects. I already install XCode 5.0.1, Command Line Tools (using xcode-select –install), and already installed libxml2 from Homebrew and I am still having problems. The error is: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension./Users/ericcamalionte/.rvm/rubies/ruby-1.9.2-p320/bin/ruby extconf.rb checking for libxml/parser.h… *** extconf.rb failed *** Could not create Makefile due to

  • Gordon
    ruby windows nokogiri devkit
    I know this is simple but I just can’t figure it out. I need to run a script in Ruby and it requires Nokogiri. I do have some experience in other languages but not in Ruby. Here is my system :Ruby 2.0.0-p195 (x64) is installed @ C:\Programs\RubyLanguageRuby Development Kit (mingw64-64-4.7.2-20130224-1432) is installed @ C:\Programs\RubyDevKitWhen I run gem install nokogiri I get this error:ERROR: Error installing nokogiri:The ‘nokogiri’ native gem requires installed build tools.Please update yo

  • Justin Ko
    ruby windows nokogiri watir
    I have been having trouble trying to get watir to work on my Win7 x64 machine. I am using the following:http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-1.9.3-p448.exe https://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exeI first install the ruby.exe listed above, and that seemed to go fine (installed to c:\ruby193). I then extracted the dev kit (listed above) to c:\devkit. I then switched to c:\rubydev and ran “ruby dk.rb init” and opened the

  • Miguel Silva
    ruby ubuntu gem nokogiri
    I’m running Ubuntu 12.10, and, when I run the command:bundle installI get: Installing nokogiri (1.5.2) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension./usr/bin/ruby1.9.1 extconf.rb extconf.rb:10: Use RbConfig instead of obsolete and deprecated Config. checking for libxml/parser.h… yes checking for libxslt/xslt.h… yes checking for libexslt/exslt.h… yes checking for iconv_open() in iconv.h… yes checking for xmlParseDoc() in -lxml2..

  • the Tin Man
    ruby-on-rails ruby ruby-on-rails-3 nokogiri rails-console
    I’m using Nokogiri in Rails 3.2.11 to do some screen scraping. I have this one very long method that when I copy and paste line by line into the rails console it runs flawlessly, but when I call it in the console form my model file, it breaks, sending this error: Nokogiri::CSS::SyntaxError: unexpected ‘$’ after ”Here’s the method (it’s 2, the first calls the second). Any help at all would be much appreciated:def self.recurse_craigs(add = ‘o’)years = “#{MIN_YR}%7C05%7C#{MIN_YR+1}%7C06%7C#{MIN_YR

  • babonk
    ruby rvm readline rails-console
    When I press the up or left arrow in the Rails console I get this bug:irb(main):001:0> /Users/me/.rvm/gems/ruby-2.0.0-p247/gems/rb-readline-0.4.2/lib/rbreadline.rb:4269:in `block in _rl_dispatch_subseq’: invalid byte sequence in UTF-8 (ArgumentError)I use rvm to manage my ruby installations. I’m using => ruby-2.0.0-p247 [ x86_64 ]I use bundle to manage my gems, and I have rb-readline (0.4.2) (which people recommend as the least buggy version).What do I need to do to eliminate this hideous

  • Nithin
    ruby-on-rails exception crash rails-console
    I’m getting this weird behaviour when running rails server or rails console.The server/console crashes in various locations in the code throwing this exception: script/rails:6:in `require’: unexpected break (LocalJumpError) from script/rails:6:in `<main>’I must note that this behaviour happens to only one more person in my team, all other members of my team does not experience this behaviour and also production server is working just fine with no crashes like this.Also, we found putting d

  • Mark Kenny
    ruby-on-rails-3 model rails-console
    I have 3 models:class User < ActiveRecord::Basehas_one :student_registrationhas_one :user_lookup endclass StudentRegistration < ActiveRecord::Basebelongs_to :user endclass UserLookup < ActiveRecord::Basebelongs_to :user endI have an after_update callback on the User model that saves a serialized JSON array of attributes from the User and StudentRegistration models into the UserLookup model’s database table.My issue is that I have about 250 records in User and wish to perform a save from

  • iWasRobbed
    ruby-on-rails model rails-console
    I am working through this tutorial book and have run into an issue with the rails console not recognizing the user model that I’ve created. Here is what I am working withThis is what I’ve defined in my user model, user.rb, located in sample_app/app/models/user.rb:class user < ActiveRecord::Baseattr_accessible :name, :emailvalidates :name, :presence => true endThis is what I get in console when I try to reference it:Nicholass-MacBook-Pro:sample_app nbkincaid$ rails console Loading developme

  • Ribena
    ruby-on-rails-3 rails-console
    When i type something like person.valid? in my rails console, instead of returning ‘false’ i get the following output:NameError: undefined local variable or method `person’ for main:Object from (irb):7 from /Users/xxx/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/commands/console.rb:44:in `start’ from /Users/xxx/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/commands/console.rb:8:in `start’ from /Users/xxx/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/commands.rb:23:

  • SWrobel
    ruby-on-rails ruby-on-rails-3 ruby-on-rails-3.2 rails-console to-yaml
    I’m trying to use y object in Rails 3.2.6/Ruby 1.9.3 console to get nicely formatted yaml output for an ActiveRecord object, but for some reason it isn’t working for me. I’ve used it in the past, but somewhere along the way it broke. I get the following output when I try:NameError: undefined local variable or method `yaml’ for main:Object

  • Green
    ruby-on-rails-3.2 rails-console
    For example, this is a rails console session. I use tab key to get all available methods of app. But many of them is not possible to call:irb(main):040:0> app.default app.default app.default_executable= app.default_locale app.default_scoped? app.default= app.default_external_encoding app.default_locale= app.default_scopes app.default_action app.default_external_encoding= app.default_lockfil

  • Pelle ten Cate
    ruby stack-trace rails-console pry
    I am using Ruby on Rails 4 on Ruby 1.9.3. When an error occurs during a rake task, I get a very nice stack trace. When however I do something in my rails console (pry) that triggers an exception, I only get to see the error message and the one line of code that triggered it (which most of the time is somewhere in the rails core).Is there a way to enable these stack dumps in the console?

  • Cornelius Wilson
    ruby-on-rails rails-console
    I am following a Rails tutorial and have to run rails console. I never had a issue with it before but now it doesn’t run.Here’s the error./Users/lexi87/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.11/lib/rails/railtie/configuration.rb:85:in `method_missing’: undefined method `generators’ for #<Rails::Railtie::Configuration:0x007ffc41d4a9a0> (NoMethodError)from /Users/lexi87/.rvm/gems/ruby-1.9.2-p320/gems/rspec-rails-2.0.0.beta.18/lib/rspec-rails.rb:4:in `<class:Railtie>’

Web site is in building