JDutil / contact_us

Gem providing simple Contact Form functionality with a Rails 3+ Engine.
http://contact-us-demo.herokuapp.com
MIT License
134 stars 57 forks source link

add simple_form support #12

Closed flyerhzm closed 12 years ago

flyerhzm commented 12 years ago

generate contacts/new page with simple_form

JDutil commented 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.

flyerhzm commented 12 years ago

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. :-)

JDutil commented 12 years ago

Yea thats the plan if you want to handle that also before I get to it this weekend.

JDutil commented 12 years ago

@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.

flyerhzm commented 12 years ago

it works well, thanks