sinatra
Here are 1,091 public repositories matching this topic...
This can be added to spec/finders/active_record_spec.rb
it 'returns correct `size` for last page' do
users = User.paginate(:page => 3, :per_page => 5)
users.total_entries.should == 13
users.total_pages.should == 3
users.size.should == 3
endThe test is failing:
bundle exec rspec spec/finders/active_record_spec.rb:420
-
Updated
Jul 1, 2020 - Ruby
It'd be nice if the change log was updated again, if not retroactively, at least ask new contributions to provide a change log entry so that it's easier for gem users to upgrade.
https://github.com/railsjedi/rails_config/blob/master/spec/fixtures/custom_types/hash.yml
It would be beneficial to mention this kind of structure in the README
Hi,
When generating the configuration in a rails 4 app with simple-navigation 4.0.3, the generated config does not seem to work.
For example I have this line:
primary.item :key_3, 'Admin', url, class: 'special', if: -> { current_user.admin? }In this case the class does not get applied (using all the time the default renderer, List).
The only way for me to get it to work was to w
Hey, I have a problem. I want to host a Jekyll-auth on a local server without usage of Cloud hosting. I'm using git docs, bundler and Jekyll-auth 2.1.1.
I run Jekyll-instance by running
sudo bundle exec jekyll-auth serve --host=tek-ffu-h0a.tek.sdu.dk
and it is stuck on "spinning up the server...". When I'm hosting it without authentication everything works. I have my git credentials defined i
-
Updated
Apr 16, 2020 - Ruby
As requested, I am pointing to a comment you solicited regarding some improvements I would suggest for dawnscanner. The improvements are:
- Document all scans that are performed, grouping them by type of scan and detailing what they scan
- Consider not using a centralized scan directory at the top level of the user home dir
- Document the scan results DB and dir structure
For original com
-
Updated
Feb 29, 2020 - Ruby
I have a rather standard gitolite git system setup. After setting ginatra up and setting the git_dirs to my ~/repositories directory I found all repos were exposed. This can easily be changed/limted by creating a new directory and symlinking to the repos you want to expose.
For Example:
- git_root: ~/repositories
- public git repositories: ~/repos-public
In ~/repos-public:
- ln -s ../repositorie
It's not needed to put the require option in the Gemfile, since your gem already requires everything you have in lib folder.
So in your Gemfile you can simply put: gem "sinatra-param"
Instead of: gem "sinatra-param", require: "sinatra/param"
-
Updated
Oct 23, 2017 - Ruby
-
Updated
Jun 30, 2020 - Ruby
Description
config.ignore_classes should take an array of strings instead of constants (or either?)
Issue
As we add error classes to the ignore_classes we're realizing that we're inadvertently loading those classes that don't need to be loaded. It would be good if ignore_classes can take in an array of class names as strings since this comparison is done at the time of error any
-
Updated
Aug 13, 2018 - HTML
The bundle command is really handy for installation, but can be a bit "magical." We should put a note in the output (and the configuration file) about what it's actually doing and make sure it is obvious and easy to change.
cc @edisgreat
-
Updated
Feb 21, 2018 - Ruby
Great gem folks
However, I'm struggling a little to see how to work this with draft associations, and I think it's something which could perhaps be covered in the documentation?
Let's say I have a draftable blog post, and a post can have various tags associated with it.
class Post < ApplicationRecord
has_drafts
has_many :tags
end
class Tag < ApplicationRecord
-
Updated
Jun 24, 2020 - Ruby
-
Updated
Aug 14, 2019 - CSS
Improve this page
Add a description, image, and links to the sinatra topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the sinatra topic, visit your repo's landing page and select "manage topics."
Whenever I try to install the sinatra gem, the first install hangs during:
"Installing ri documentation for sinatra-2.0.7"
I manually interrupt it, then do it again, and then it works.
I have no idea what causes it, but all the other gems and their ri
documentation do not have this issue.
I believe that there must be something special for sinatra documentation
done that causes this b