collect email using hominid/mailchimp rails 3.0 -
i collect emails of prospective users of app. i've created page simple form. first question since i'm not using db, need model? , secondly, how use "form_for" form generation if don't need use model. thank you
i've done this. first created simple form email field , submit button in views (app/views/home.html.erb). use form tag helper create form rather writing own html: http://guides.rubyonrails.org/form_helpers.html. made sure route form action correct action in controller. in controller use hominid subscription, redirect index using redirect_to (':action => home'). that's took.
Comments
Post a Comment