ruby-on-railsRelated issues-Collection of common programming errors


  • 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.

  • BoltClock
    ruby-on-rails installation osx-lion
    I’m a n00b eager to get my hands on Ruby on Rails (OSX 10.7). But first I need to install it. Now I’ve spend 9 hours trying to get it to work but it always fails when I try to create a new project:$ rails new /Users/tom/Documents/14-Utveckling/WhichTerminal exist identical README.rdoc identical Rakefile identical config.ru identical .gitignoreconflict Gemfile Overwrite /Users/tom/Documents/14-Utveckling/WhichTerminal/Gemfile? (enter “h” for help) [Ynaqdh] Yforce Gemfileexist app identic

Web site is in building