I would like to make the ERB template plain text in Rails. Ideally, I could do something like this:
app / views / test / test.txt.erb
Test <%= @test %>
When I tried, Rails complained of the following error:
ActionView::MissingTemplate (Missing template test/test, application/test with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee]}. Searched in: * "/Users/landonschropp/Development/test/app/views" ):
ruby-on-rails erb
Landonchropp
source share