On 28 November 2015 at 19:38, dave <[email protected]> wrote:
> Hi Group,
> I'm trying to see how Rails at ``startup time'' creates  Javascripts within
> the Clientside of the browser.
>
>      rails s #starting my program
>
> I've used both Byebug within Ruby code and Firefoxe's debugger within the
> browser.
> ==> Firefox's debug shows me the generated scripts like jquery etc but this
> is after the fact: the code producing the scripts has already executed.
>        I want to observe how/when it generates the script and how various
> callbacks are registered particularly in jquery. Eg plot function using
> flot.

All rails does is to package up the js from the relevant gems serve it
on to the browser.  If you look in the flot gem you will see
effectively the same javascript that you see in the Firefox debugger.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLu2tbJp75Axb3bYmPysWqbkvr36FAgYsaraCC5oeyH4mw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to