Skip to content

indigotechtutorials/cool-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Looking for a way to make Rails more πŸ˜ŽπŸ†’?

Add this gem and you won't regret it.

bundle add cool_rails

Include the CoolRails module on your model

class Post < ApplicationRecord
  include CoolRails
end

How to use

# Initialize record
Post.🀰(title: "The start of something big")

# Create new record
Post.πŸ‘Ά(title: "This is so much cooler")

# Count records
Post.πŸ”’

# Find record by id
@post = Post.πŸ‘€(id: params[:id])

# Query record
@post = Post.πŸ”Ž("title = ?", "This is so much cooler")

# Update record
@post.πŸ› οΈ(title: "Try out a new title ouu")

# Destroy record
@post.πŸ’£

About

Make Rails cool again πŸ˜ŽπŸ†’

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages