beginner rails question here. I created a web scraper to populate my model with information and I wanted to call this method with a button from a view. More importantly, I wanted to pass the contents of a form as a parameter to this method. I'm kinda lost on how to this using forms, but so far I have:
I placed the method into the directory app/helpers/admin_pages_helper.rb
module AdminPagesHelper
def populate(term)
.
.
end
end
I then have a view located at app/views/admin_pages/index.html.erb
I'm unsure of how to go about this using the form_tag/text_field_tag/submit_tag for a parameter; most of examples I've seen involve database queries using forms instead. Thanks
term- a single parameter as a string? - PinnyM