
Product
Introducing Module Reachability: Focus on the Vulnerabilities That Matter
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
Trails Sample App Repository to see how to use Trails
Trails is a lightweight MVC framework built in Ruby by Will McMeans. It is similar in functionality to Ruby on Rails, but flavored the way I like it. It features a custom ORM called Dynamic Archive (doesn't that sound more exciting than Active Record?) and everything else you need to build a simple web app. We're not riding rails...we're hiking trails!
gem install trails-mvc
trails new <name>
— begins a new Trails project
trails server [--host] [--port]
— starts the Trails server; default host: localhost,
default port: 3000
trails generate model <model_name>
— creates a new model file in app/models
and a new migration in db/migrations
trails generate controller <controller_name>
— creates a new controller file in
app/controllers
and a corresponding view folder in app/views
trails generate migration <migration_name>
— creates a blank migration file in
db/migrations
(but no model file)
trails db reset
— clears the database, runs all migrations, and re-seeds
trails db migrate
— runs all pending database migrations
trails db seed
— seeds the database
Follow the example in config/routes.rb
It's recommended to add styling to public/assets/application.css
and any JavaScript
to public/assets/application.js
. You may also include other scripts and stylesheets
in your views as long as you store them in public/assets
.
Check out the Trails Sample App Repository to get a better idea of what you can do with Ruby on Trails
Server
handles requests and creates responses, nesting the main
app within a Rack::Builder
instance that contains middleware (e.g. a StackAssetsServer
that serves stylesheets).Router
uses routes to direct requests to controllers.TrailsController::Base
builds responses based on
parameters and renders content using ERB
views, including partials.Session
sets and reads cookies to persist data between
requestsFlash
a special type of information that lives for only one
subsequent request (or just the current one, if using Flash#now
).FAQs
Unknown package
We found that trails-mvc 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.
Product
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
Company News
Socket is bringing best-in-class reachability analysis into the platform — cutting false positives, accelerating triage, and cementing our place as the leader in software supply chain security.
Product
Socket is introducing a new way to organize repositories and apply repository-specific security policies.