Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App events #399

Closed
tj opened this issue Aug 16, 2010 · 4 comments
Closed

App events #399

tj opened this issue Aug 16, 2010 · 4 comments

Comments

@tj
Copy link
Member

tj commented Aug 16, 2010

will brainstorm some practical ideas but might be good
to have the app itself emit some events

@masylum
Copy link
Contributor

masylum commented Aug 16, 2010

I would like to have events on matching routes, so you could emulate before_filter.
This could be useful to load a user from the session, or just to setup the layout on a view.

Another useful event could be, on render.

@tj
Copy link
Member Author

tj commented Aug 16, 2010

I would call those hooks more than events, still useful though since they would alter the flow. I will create another issue about getting before() back in possibly

@tj
Copy link
Member Author

tj commented Aug 17, 2010

gonna close this until I have a use-case

@ghost
Copy link

ghost commented Aug 17, 2010

a use-case I actually have is to update a What's New box (in a ajaxy way) whenener my webapp gets a new feature and notify the user of the update (with a growl-like jquery plugin)

the "What's New" contents could be stored in a view file that, when updated, would automatically have its data broadcasted to the clients

sounds good?

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants