Norbert Melzer wrote in post #1110905:
> 2013/6/1 Paul Bergstrom <li...@ruby-forum.com>

> I mean, if your js-file is /app/views/test/index.js.erb AND your
> controller
> is /app/controllers/test_controller.rb AND you have route setup to the
> index action, then you have to point your browser to "
> http://localhost:3000/test/index.js";. This way you should see the
> content
> of your index.js.erb. If you can't see it, there is something going
> wrong.
>
> And if there is something going wrong you need to provide that pieces of
> further information that is Colin asking you since the start of the
> thread.

I think I understand it better now. My example will only work if it's an 
ajax call, specifically pointing to a js script? Is that right.

So that would mean a NO to my question. An alert(hello"") will not run, 
in a file "index.js.erb", by simply going to the corresponding action 
"index", the HTML file?

No need for log file. :-)

-- 
Posted via http://www.ruby-forum.com/.

-- 
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 rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/84e76e408b29d121a41a8329dc2a2685%40ruby-forum.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to