2013/6/1 Paul Bergstrom <li...@ruby-forum.com>

> 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/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.

-- 
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/CA%2BbCVsuUuSYpy03XzZgZhy3PVkvO-oveTaJCaPA6H79YdYhdbA%40mail.gmail.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to