Access show page instance variable and show it in application.html.erb - ruby-on-rails

I am really stuck and hope you can help?
I have got everything working on the show page, I have looped through the audios I have added via a form and everything is working if you go into the individual meditations.
but I wanted the player to be persistent throughout the application, I am struggling to work out the best way to achieve this, so I thought I could grab the instance variable from the show page looping through and show the player, but I know this is not possible as application.html.erb does not know of the individual audios.
I'm really stuck at the mo hope you could share some light? Thanks
P.S sorry for being a noob!

Related

Success: Trying to end Path at a certain point

EDIT: I have since implemented the feature and it looks great in my personal opinion, I have added a link to my game dev's instagram which has a preview video of the feature. Please have a look, and like the post if you like what you see because another opinion is valuable to me 😁
https://www.instagram.com/p/CBlAlgfpIT_/?igshid=v8ahisp6nfy9
I'm wondering if anyone could please help me. I have a camera object which is set to View0 in a room 3416x1920 and then camera view set to 854x480. In this specific room I have 3 options pages I want the user to navigate to by using Paths and to stop once arrived on correct page (I have a system setup for navigation already, just needing help with Paths). How would I make the Path stop without resetting and going back to start point, at the moment it plays the Path and doesn't stop when hits end it'll just loop back to start.
I have included a photo diagram of what I'm trying to do, as well as a screenshot of my current Paths setup. Any help is much appreciated thanks.

Displaying Data From Firebase in iOS in 'Flashcards'

I am developing an iOS app that displays certain words from a Firebase database. The difference, however, is that I want to display the search results in a 'Flashcard' style. I have attached an image to give you an idea of what I am trying to do. I also want it to act as a button (i.e perform some actions when tapped). It would be great if you could help me give me an idea about how I could get this done. Thanks a lot]1
1.) Create a custom collection view. (Guide: https://medium.com/#michaelrojas_66889/how-to-make-a-custom-collection-view-cell-in-swift-6d5783ab7c1c)
2.) Get started with Firebase. (How to get started: https://firebase.google.com/docs/ios/setup)
3.) Setup everything you need for the collection view (Code)
4.) Retrieve values from Firebase. (https://firebase.google.com/docs/database/ios/read-and-write)
At least this is a start where you should begin. There is hundred of guides how to perform something like that, if you're googling the correct way. Once you get started, you should edit your post and ask more specific what you need help with and there will be a lot of people here who will help you out. But like someone said in the comments, it's not a code service. We're not building it for you. We're here to help you get in the right direction. (I know it's a pain in the beginning, and you will get confused a hundred of times. But that's the best way of learning.)
Good luck!

Twilio-Simple sms Form Box

Hi I apologize if this seems like a stupid question or if I am in the wrong section, but I am working for a startup company as their main web designer, but I was tasked with adding a simple referral code to the bottom of the page where all that is needed is where the user put their number in and they get a standard non random code outputed to their phone and if possible their number is databased and I'm just not sure where to start on this, I have followed some of their tutorials, but nothing seems to be following close to this, I have most of my experience in Javascript, CSS, and HTML and this is starting to get into some uncharted territory and I was wondering if anyone could guide me in the right way? Thank you very much for any help!

Display notification to everyone viewing website

Im working on a website and I am not sure how to go about a feature I want to implement.
I have some user interactions and when they do something I want to display a message on the website (like a toast in android) to anyone who is currently viewing the website.
Im not sure where to start with this....Ive tried searching for something but havent been able to find anything that is what I want...any help pointing me in the direction as to what I should be looking into would be helpful
On sites where you want to show notification use ajax call every second for example, which check if there is some notification to show, if so then write notification using javascript to the page

blade service injection not working Laravel 5.1

I am trying to inject a controller into my view(blade.php) but it is being outputted as is
#inject('problems', 'App\Http\Controllers\DonnerController')
this line is being printed on the screen, what's wrong here?
My file name is problems.blade.php
So, i found no solution to the problem. I decided to choose a different route since I wanted to share data to my view without any post request sent from page.
I used
View Composers
a better way to share data to views. I took help from laracasts and this tutorial to implement ViewComposers. I hope it may help any future beginner.

Resources