Skip to main content

Nofications screen cast

Site Feedback • Asked by John Munyi

Hi Chris ,

I am following the notifications screen here : https://gorails.com/episodes/in-app-navbar-notifications?autoplay=1
all is well no errors but when i create a post the notifications arent being created, any guidance ?

my code can be found here https://github.com/wolfieorama/furry-fortnight

cheers


I had a quick look at your repository and it might not be up to date because there are several things missing to create notifications.
For example the coffeescript https://github.com/excid3/gorails-episode-96/blob/master/app/assets/javascripts/notifications.js.coffee
Or the jbuilder for the Json https://github.com/excid3/gorails-episode-96/blob/master/app/views/notifications/index.json.jbuilder
Or the controller https://github.com/excid3/gorails-episode-96/blob/master/app/controllers/notifications_controller.rb

Have a look at this example that Chris provided: https://github.com/excid3/gorails-episode-96


christophe, thnks for the response but i thought to create a notification in the DB I only need the controller action for Notification.create() as per the tutorial the json part comes much later but for the Notification to be available in the db isnt it only what i have done ?


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.