Dipak Panchal
Dipak Panchal

Reputation: 6036

Edit my text file content in rails

I have a one file "xyz.text.erb" in my view folder. I want to edit that content. Like I am an admin and I want to edit that xyz.text.erb file content in an editor when I click on save then change content of xyz.text.erb file. How can I do this?

Upvotes: 0

Views: 275

Answers (1)

You cannot do that because if you change the content of the file after start server rails, rails doesn't reload the file so you must put your content in a database.

Rails in development reload all files each time but in production you can remove all folder app the application continue without any problems.

Upvotes: 1

Related Questions