Ruby Rails Sample error



  • Official comment
    Casper Fabricius

    Hi Thomas,

    If you haven't changed anything in the sample app, then that's the problem. As you can read out of the readme, you must install the "Leads" app pack and update the app_id and space_id in the sample code for the sample to work.

    If you don't do this, there will be no app to update and you will get the error above.

    Comment actions Permalink
  • Thomas Bilbrey

    Thank you, Casper but I did change the AppId and spaceid as well as the client ID and Client Secret. Please help. I will provide any information you need. Thanks

    Comment actions Permalink
  • Casper Fabricius

    Hi Thomas,

    Apologies for the long wait. I have now updated the rails sample application to work again. If you follow the updated instructions everything should work for you.

    Comment actions Permalink
  • Thomas Bilbrey

    Now I can't even load it the example....

    Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-3.2.8/lib/action_controller.rb:1:in `require': cannot load such file -- abstract_controller (LoadError)

    Comment actions Permalink
  • Thomas Bilbrey

    the 'require' error I posted earlier today is on my windows 7 machine.

    On my Ubuntu os, when I run the 'rails server' command I get this error:
    Could not find json-1.7.5 in any of the sources
    Run bundle install to install missing gems.

    1. I've tried everything I can think of including of course googling it to see if I could find the answer.
    2. tried to install json 1.7.5 manually
    3. tried to put json 1.7.5 in gemfile and run bundler and it doesn't work.
    4. The error below is what I receive when I ran 'bundle Install' like the message says to do.

    :~/podio_rails_sample$ bundle install
    Fetching gem metadata from
    Fetching version metadata from
    Fetching dependency metadata from
    Using rake
    Using i18n 0.6.1
    Using multi_json 1.3.6
    Using activesupport 3.2.8
    Using builder 3.0.0
    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.3
    Using actionpack 3.2.8
    Using mime-types 1.19
    Using polyglot 0.3.3
    Using treetop 1.4.10
    Using mail 2.4.4
    Using actionmailer 3.2.8
    Using arel 3.0.2
    Using tzinfo 0.3.33
    Using activerecord 3.2.8
    Using activeresource 3.2.8
    Using addressable 2.3.2
    Using ansi 1.4.3
    Using coffee-script-source 1.3.3
    Using execjs 1.4.0
    Using coffee-script 2.2.0
    Using rack-ssl 1.3.2
    Installing json 1.7.5 with native extensions

    Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /home/new/.rbenv/versions/2.2.2/bin/ruby -r ./siteconf20150623-2970-13matp0.rb extconf.rb

    creating Makefile

    make "DESTDIR=" clean

    make "DESTDIR="
    compiling generator.c
    In file included from generator.c:1:0:
    ../fbuffer/fbuffer.h: In function ‘fbuffer_to_s’:
    ../fbuffer/fbuffer.h:179:47: error: macro "rb_str_new" requires 2 arguments, but only 1 given
    VALUE result = rb_str_new(FBUFFER_PAIR(fb));
    ../fbuffer/fbuffer.h:179:20: warning: initialization makes integer from pointer without a cast [enabled by default]
    VALUE result = rb_str_new(FBUFFER_PAIR(fb));
    In file included from generator.c:2:0:
    generator.c: In function ‘cState_aref’:
    generator.h:75:27: warning: variable ‘state’ set but not used [-Wunused-but-set-variable]
    JSON_Generator_State state; \
    generator.c:632:5: note: in expansion of macro ‘GET_STATE’
    make: *
    * [generator.o] Error 1

    make failed, exit code 2

    Gem files will remain installed in /home/new/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/json-1.7.5 for inspection.
    Results logged to /home/new/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/extensions/x86_64-linux/2.2.0-static/json-1.7.5/gem_make.out
    An error occurred while installing json (1.7.5), and Bundler cannot continue.
    Make sure that gem install json -v '1.7.5' succeeds before bundling.

    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk