I've got some javascript that needs to load a rails partial - I'd prefer not to repeat the partial's HTML in the javascript file.
Is there a way to make this partial accessible via the browser url so JS can load it?
partial location:
shared/_search.html.erb
I would like to grab the view html with something like this:
example.com/shared/search.html
Can I explicitly route this or grab it locally via the file system?
I don't want to have to create a controller just to render this partial for the JS.