You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set some variables params in before_action ApplicationController so they are accessible
in entire app for every Paloma controller.
js user: username, email: email
How can i access this params with other js functions outside of Paloma controllers?
I want them to be accessible for all pages - not specific ones.
I see them passed to html-js script, for example:
I don’t think that’s possible… At least, it doesn’t look like something that Paloma supports by default (you seem like you want global variables). Do you want them to be accessible by every JS function in your app, or only every action a Paloma controller might have?
However, have you tried to set those parameters as global variables in other way? Something like:
I set some variables params in before_action ApplicationController so they are accessible
in entire app for every Paloma controller.
How can i access this params with other js functions outside of Paloma controllers?
I want them to be accessible for all pages - not specific ones.
I see them passed to html-js script, for example:
The text was updated successfully, but these errors were encountered: