I have a Rails 4.1.0 mounted engine. In the application_helper.rb engine:
module MyEngine module ApplicationHelper def test123 "test123" end end end
This method is in the "dummy app view" general/index.html.erb :
%<= test123 %>
It works. However, when I change the line returned by def test123 and update the browser, a new line is not displayed.
Of course, restarting the web server in a dummy application shows a new line.
So, the question is how to reload engine files without restarting the web server?
PS. I prefer a way to do this using Rails on my own or a specific gem that solves this problem (but not common gems like Guard, Spork, etc., although if all else fails, I will consider them too.)
SFC. There are similar questions on SO, but I tried all of them (even if they are designed for Rails 2.x, 3.x), and they did not work for me.
ruby-on-rails-4 rails-engines
Zabba Nov 24 '13 at 7:14 2013-11-24 07:14
source share