Closed flyerhzm closed 12 years ago
Thank you for the contribution. I'd like to pull this in soon. My plan is to build upon your idea, and also allow for a normal rails form template. That way neither simple_form or formtastic will be required. Once I have time this weekend or next weekend I'll work on that, and pull this in unless you want to jump on that also.
I already moved formtastic and simple_form to development dependency, that means it won't ask the projects, who use contact_us, install formtastic or simple_form gems. I think it would be easy to add a normal rails form template, just add a new view page and change controller logic a bit, of course change locales. :-)
Yea thats the plan if you want to handle that also before I get to it this weekend.
@flyerhzm I've merged your simple_form update in 45fe88856602ebac12981d2baf0a57ed1ca0cfb9 please test out the update by pointing your Gemfile to:
gem 'contact_us', '~> 0.4.0.beta', :git => 'https://github.com/jdutil/contact_us'
Also be sure to set the config.form_gem option in your config/initializers/contact_us.rb
too.
Let me know if you run into any issues.
it works well, thanks
generate contacts/new page with simple_form