
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
gem i voidtools
note: ruby 1.9 required
in your form view:
error_messages_for :resource
or
error_messages_for @resource
example: in your DM model add a name_url property
property :name_url, String, length: 255
before :create do
self.name_url = generate_url_from_name name
end
before create, the name_url will be generated to make your urls seo-friendly
helpers examples:
link_to "Label", "/your/link"
image_tag "/image/file.png"
include_js "antani" #=> <script src='/js/antani.js' ...>
include_css "antani" #=> <link href='/css/antani.css' ...>
%body{ class: body_class } #=> "/" -> home, "/posts/1" -> "posts", etc.
Usage:
in your model add:
require 'voidtools/dm/paginable'
include Voidtools::Paginable
in a controller (or similar):
Model.paginate(page: params[:page])
in your view:
.pagination
pag:
- Model.pages.times do |i|
%a{ :href => "/path?page=#{i}" }= i+1
(optional) in your model:
def self.per_page
20
end
a simple stylesheet (sass):
.pagination
margin: 10px 20px
a
padding: 3px 6px
background: #DDD
a:hover
background: #FFF
git clone git://github.com/makevoid/voidtools.git
cd voidtools;
gem build voidtools.gemspec; gem install voidtools-x.x.x.gem
v0.3.1 - remove unnecessary files v0.2.9 - added datamapper module autoload if DataMapper is defined v0.2.3 - first stable version, autoloads modules for sinatra and rails
FAQs
Unknown package
We found that voidtools demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.