Re: [Rails] Re: Re: A simple javascript alert not working

2013-06-01 Thread Colin Law
On 1 June 2013 10:52, Paul Bergstrom wrote: > Colin Law wrote in post #1110879: >> On 1 June 2013 09:00, Paul Bergstrom wrote: >>> >>> Not sure how I can explain it better. It's a very simple example. >>> >>> When going with the browser to an action with a corresponding *.js.erb >>> file should t

Re: [Rails] Re: Re: A simple javascript alert not working

2013-06-01 Thread Norbert Melzer
Have you a route to a corresponding controller in general? Have you a controller? Does this controller work when you try to deliver an HTML view? Oh, and when you want to have a js response, then you must use /test/index.js, without the extension given rails will try to deliver HTML (if you haven't

[Rails] Re: Re: A simple javascript alert not working

2013-06-01 Thread Paul Bergstrom
Colin Law wrote in post #1110879: > On 1 June 2013 09:00, Paul Bergstrom wrote: >> >> Not sure how I can explain it better. It's a very simple example. >> >> When going with the browser to an action with a corresponding *.js.erb >> file should the JavaScript in that file run, like alert("hello")?