Giter Club home page Giter Club logo

Comments (11)

kangguru avatar kangguru commented on May 23, 2024

are you using bundler? or writing some script without?

can you try Epics::Client, which is the name mentioned in the README, altough Ebics should also work.

from epics.

ternes3 avatar ternes3 commented on May 23, 2024

I am using bundler, with Epics it run into cannot load such file -- epics. Mixed up with require "ebics" and Epics::Client it end up in uninitialized constant MyClass::Epics.

from epics.

kangguru avatar kangguru commented on May 23, 2024

within a rails app?
or a custom script? -> how are you requiring the bundle then?

are you using epics or ebics?

from epics.

ternes3 avatar ternes3 commented on May 23, 2024

Yes, its inside an rails app.
Gemfile -> gem 'epics'

Well, actually i tried everything with ebics, but you comment recently:

can you try Epics::Client

so now im using epics. My Controller looks like:

require "epics" //error line when require "epics" cannot load such file -- epics

class InitController < ApplicationController

  def index
    e = Epics::Client.setup("my-super-secret", "https://ebics.sandbox", "SIZBN001", "EBIX", "EPICS") //error line when require "ebics" uninitialized constant InitController::Epics
   ...

  end
end

from epics.

kangguru avatar kangguru commented on May 23, 2024

hm...

class ApplicationController < ActionController::Base
  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception

  def foo
    render text: Epics::Client
  end
end

works on a new generated rails app.

although i'm pretty sure you've done all that, just to reduce failure options:

  • bundle is installed?
  • server restarted?
  • spring is stopped?

from epics.

ternes3 avatar ternes3 commented on May 23, 2024

ok, i just copied your example controller, same result.
Bundle is installed and the server is restarted. Spring was running. Unfortunately without spring it results in the same error.

from epics.

kangguru avatar kangguru commented on May 23, 2024

puh... what else is in the Gemfile? Can you provide it to me?

from epics.

ternes3 avatar ternes3 commented on May 23, 2024

sure, actually it is the gemfile generated with rails new ... added epics and unicorn, removed spring (yep i run spring stop on my project).
source 'https://rubygems.org'

gem 'epics'

gem 'rails', '4.2.6'

gem 'sqlite3'

gem 'sass-rails', '~> 5.0'

gem 'uglifier', '>= 1.3.0'

gem 'coffee-rails', '~> 4.1.0'

gem 'jquery-rails'

gem 'turbolinks'

gem 'jbuilder', '~> 2.0'

gem 'sdoc', '~> 0.4.0', group: :doc

gem 'bcrypt', '~> 3.1.7'

gem 'unicorn'

group :development, :test do
  gem 'byebug'
end

from epics.

kangguru avatar kangguru commented on May 23, 2024

i've pushed the complete sample app and used your Gemfile... still works.

can you check it out and maybe find some differences between those two?

https://github.com/kangguru/test-epics

from epics.

ternes3 avatar ternes3 commented on May 23, 2024

thanks very much kangguru, the solutions is simple. The difference is the line require 'epics', it just seems not to be necessary, without the application works fine.

from epics.

kangguru avatar kangguru commented on May 23, 2024

ok, although that should not change something :) happy it now works for you!

happy easter ๐Ÿฐ

from epics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.