jordanmaguire / frontier_generators Goto Github PK
View Code? Open in Web Editor NEWThis project forked from thefrontiergroup/frontier_generators
Rails generators to be used to quickly scaffold CRUD for models in the Rails Template
This project forked from thefrontiergroup/frontier_generators
Rails generators to be used to quickly scaffold CRUD for models in the Rails Template
EG: Carrierwave.
In create/update specs:
attach_file("Document", sample_upload_file)
expect(claim_document.document).to be_present
In model:
mount_uploader :document, ClaimDocumentUploader
Can generate uploader via carrierwave
In factory:
document { sample_file }
From thefrontiergroup#150
This works better with inherited_resources
Example:
In model:
enum point_type: {activity: 0, cow: 1, offer: 2, photo_opportunity: 3, site: 4, standard: 5}
in en.yml
en:
point_of_interest:
point_types:
activity: "Activity"
cow: "Cow"
offer: "Offer"
photo_opportunity: "Photo Opportunity"
site: "Site"
standard: "Standard"
On index
%td= I18n.t(point_of_interest.point_type, scope: [:point_of_interest, :point_types])
From thefrontiergroup#160
Example:
In model:
enum point_type: {activity: 0, cow: 1, offer: 2, photo_opportunity: 3, site: 4, standard: 5}
In view:
= f.input :point_type, collection: PointOfInterest.point_types.keys.map {|value| [I18n.t(value, scope: [:point_of_interest, :point_types]), value]}
In specs...
select(I18n.t(point_of_interest_attributes[:point_type], scope: [:point_of_interest, :point_types]), from: "Point type")
in en.yml
en:
point_of_interest:
point_types:
activity: "Activity"
cow: "Cow"
offer: "Offer"
photo_opportunity: "Photo Opportunity"
site: "Site"
standard: "Standard"
From thefrontiergroup#159
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.