kaminari / kaminari-sinatra Goto Github PK
View Code? Open in Web Editor NEWKaminari Sinatra adapter
License: MIT License
Kaminari Sinatra adapter
License: MIT License
Have you tried running these tests on 2.0?
I can send a patch to add another gemfile if that would help!
I am not using padrino in my new Sinatra app. But including kaminari-sinatra attempts somehow to read translation files from padrino.
Is the padrino-helpers depencency necesary?
This is when I run my previously passing specs after adding kaminari-sinatra into my gemfile.
3) Admin voucher management vouchers listing authenticated admin visits it paginates vouchers navigate to the next page behaves like lists n vouchers lists 5 vouchers
Failure/Error: name { Faker::Name.name }
I18n::InvalidLocaleData:
can not load translations from /usr/lib/ruby/gems/2.5.0/gems/padrino-core-0.9.21/lib/padrino-core/locale/cz.yml: #<Psych::SyntaxError: (/usr/lib/ruby/gems/2.5.0/gems/padrino-core-0.9.21/lib/padrino-core/locale/cz.yml): did not find
expected node content while parsing a flow node at line 15 column 13>
Shared Example Group: "lists n vouchers" called from ./spec/features/admin/voucher_management_spec.rb:39
ArgumentError - wrong number of arguments (given 0, expected 3) (ArgumentError):
.rvm/gems/ruby-3.2.1/gems/actionview-7.1.3/lib/action_view/base.rb:228:in `initialize'
.rvm/gems/ruby-3.2.1/gems/kaminari-sinatra-1.0.1/lib/kaminari/helpers/sinatra_helpers.rb:30:in `initialize'
.rvm/gems/ruby-3.2.1/gems/kaminari-sinatra-1.0.1/lib/kaminari/helpers/sinatra_helpers.rb:94:in `new'
.rvm/gems/ruby-3.2.1/gems/kaminari-sinatra-1.0.1/lib/kaminari/helpers/sinatra_helpers.rb:94:in `paginate'
views/index.erb:13:in `__tilt_1140'
I see no commits in 3 years. Is this project even still alive?
the issue: kaminari/kaminari#632 have reappeared
when register Kaminari::Helpers::SinatraHelpers
are included it results in no layout files being loaded, and it is only the specific file that are loaded. no layout.html/slim/haml
With two or more checkboxes selected in multiple selection checkboxes,
When the query parameter is created, it is created with "[]" in the key of the parameter.
That is why the URL of the second page created by the paginate method will be defective and an error will occur.
I created a repository that reproduced the problem.
https://github.com/MiuraSeiya/checkbox-test
This is due to loading ActionView
which requires Rails.
ActionView
claims to not require Rails, but it uses the underlying rails-html-sanitizer gem, which says:
Rails HTML Sanitizer is only intended to be used with Rails applications. If you need similar functionality but aren't using Rails, consider using the underlying sanitization library Loofah directly.
This causes issues loading gems like for instance Papertrail as this line:
if defined?(Rails)
require "paper_trail/frameworks/rails"
thinks Rails is available and then blows up.
The ideal world is to prevent the Rails
constant from being loaded somehow, but at a minimum some documentation around this gem still requiring Rails would probably help clarify the dependency, esp since the name "kaminari-sinatra
" kind of implies I can use Sinatra and not need Rails.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.