![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.