Ruby on Rails
Saturday, June 1, 2013
2013/6/1 Paul Bergstrom <lists@ruby-forum.com>
Norbert Melzer wrote in post #1110888:> Oh, and when you want to have a js response, then you must useI know. You mean index.js.erb?
> /test/index.js, without the extension given rails will try to deliver
> HTML
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+unsubscribe@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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment