On Saturday, November 28, 2015 at 4:09:08 PM UTC-5, Colin Law wrote:
>
> On 28 November 2015 at 19:38, dave <[email protected] <javascript:>> 
> 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. 
>

Hi Colin,
Thk u for the reply. Yes i'm aware of this behaviour.
What i'm trying to understand is the Ruby code used to do it. As just 
posted to Fred, for me it now becomes a debugger issue to continue 
observing the code pattern for the javascript presented to the Browser.
Any suggestions to debugging the Eval statement in continued tracing code 
sequencing is appreciated.
Dave 

>
> 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/498c0b8f-df4b-4097-859d-949e331428e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to