Comments (11)
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.
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.
within a rails app?
or a custom script? -> how are you requiring the bundle then?
are you using epics
or ebics
?
from epics.
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.
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.
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.
puh... what else is in the Gemfile? Can you provide it to me?
from epics.
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.
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.
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.
ok, although that should not change something :) happy it now works for you!
happy easter ๐ฐ
from epics.
Related Issues (20)
- CCT invalid signature error HOT 20
- Give gem authors admin write access to the repository HOT 23
- EMSA-PSS sign HOT 2
- INI method fails HOT 3
- OpenSSL::PKey::RSAError: Neither PUB key nor PRIV key: unsupported HOT 25
- Add @tobischo as Gem author and allow publishing to rubygems HOT 8
- OpenSSL 3.0 error - rsa#set_key= HOT 7
- EBICS version support HOT 6
- Bank refuses CDB messages with ruby 3.1 HOT 19
- New release HOT 2
- EBICS_AUTHENTICATION_FAILED HOT 2
- problem with INI HOT 8
- CCS constants are not used after inheriting from CCT
- X001Digest and E001Digest for HIA request
- Demo server HOT 1
- faraday dependency unbounded version constraint HOT 5
- how would one be able to make use of this client? without know ruby HOT 2
- Handling of old keys with `"#USER": {},` raises error HOT 1
- EBICS_ONLY_X509_SUPPORT
- epics CDZ implementation: wrong order type action ? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from epics.