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

2013-06-01 Thread Norbert Melzer
2013/6/1 Paul Bergstrom > Norbert Melzer wrote in post #1110888: > > 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 > > I know. You mean index.js.erb? I mean, if your js-file is /app/views/test/in

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

2013-06-01 Thread Colin Law
On 1 June 2013 11:52, Paul Bergstrom wrote: > Colin Law wrote in post #1110893: >> On 1 June 2013 10:52, Paul Bergstrom wrote: in the browser to see what is being sent to the browser. Colin >>> >>> Doesn't seem to load. This should be so incredible simple. Why doesn't >>> it work?

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

2013-06-01 Thread Paul Bergstrom
Colin Law wrote in post #1110893: > On 1 June 2013 10:52, Paul Bergstrom wrote: >>> in the browser to see what is being sent to the browser. >>> >>> Colin >> >> Doesn't seem to load. This should be so incredible simple. Why doesn't >> it work? What have I missed? > > No idea what you mean by "does

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

2013-06-01 Thread Paul Bergstrom
Norbert Melzer wrote in post #1110888: > 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? Yes. > Oh, and when you want to have a js response, then you must use > /test/index.js, without the extens