Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7748389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:46:22+00:00 2026-06-01T10:46:22+00:00

I am building a Ruby on Rails application and I want to be able

  • 0

I am building a Ruby on Rails application and I want to be able to write custom plugins that respond to application-wide events.

For example, a user can check-in to a place in my application. When this occurs, I may want to be able to

  • Send an e-mail notification
  • Send a push notification
  • Award some points to the user
  • Log the event to the database

The point is, I want the above actions to be decoupled from the check-in code. I want to be able to enable or disable these different code snippets. I should be able to add other actions to the code without touching the check-in code base.

Does Ruby on Rails have any mechanisms for doing something like this?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T10:46:24+00:00Added an answer on June 1, 2026 at 10:46 am

    While I am sure there are plenty of other publish/subscribe type systems, it’s probably worth at least looking at ActiveSupport::Notifications which is part of rails

    It makes it pretty easy to publish events to subscribers and for interested 3rd parties to subscribe to them. The runtime summary in your application log file is implemented using this: rails publishes events with the runtime info and also provides a subscriber that writes the info to the logfile. This is also how activerecord query logging is implemented.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building an iPhone application that talks to a Ruby on Rails backend. The
I am building an application in Cocoa that uses a local Ruby on Rails
I am building an application using Ruby on Rails. I want to do something
What is the recommended approach building a plugin API for a ruby (rails) application?
I am building a ruby on rails website that will store and stream videos.
I am building an Ruby application using Sinatra (over Rack/Thin) and I want to
I'm building a web application with Ruby on Rails which needs to be highly
I just installed Ruby EE 11.01. I had a Rails 2.3.8 application that was
I have an application that I am building and the user eveuntually gets redirected
I'm building a referral program for my Ruby on Rails app, such that a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.