How can I trigger a scaffold generation from a view?
For example, let's say I have a method like this:
def scaffold_generation
system "rails g scaffold TodoList task author"
end
How can I make a button on my "example_page.html.erb" trigger this method to execute the command on the server? (No worries about security here)