I'm using Formtastic 1.1.0 w/ a rails 2.3.5 app. I tried upgrading to beta2, but found I was getting 'semantic_form_for is undefined' errors. I noticed someone else mentioning that this might have something to do with haml.
Does everything work as expected with ERB instead?
Please also double check you restarted your server after installing everything.
I made that specific form erb only, and I still get the same error. I had restarted my server. I'm testing locally on an Ubuntu dev machine. I upgraded to rails 2.3.10, still no luck.
If I downgrade to Formtastic 1.1.0 I have no issues.
Gems from Gemfile:
gem "rails", "2.3.10"
gem "sqlite3-ruby", :require => "sqlite3"
gem "devise", "1.0.8"
gem 'rmagick', :require => 'RMagick'
gem 'rack-cache', :require => 'rack/cache'
gem 'dragonfly', '0.6.1', :require => 'dragonfly/rails/images'
gem 'wizardly', '0.1.8.9'
gem 'formtastic', '1.2.0.beta2'
I was able to install formtastic 1.2.0.beta2 under Rails 2.3.9 by both adding the gem to environment.rb and through bundler. I have no idea what you're doing, but... works for me! There's also been a heap of installs of the beta, and no one else has reported an issue.
Are you running ./script/server or bundle exec ./script/server?
How did you convert your Rails 2 app to Bundler?
bundle exec ./script/server
I didn't notice this, but I noticed one person in the form inidcate that most people having this issue also seemed to be using haml. I won't get a chance this weekend, but I'll try to duplicate the results in a new app.
I can't reproduce this, closing for now. Happy to be shown exactly how on a small test app.
I also have the same problem, also with haml in the loop.
If I use 1.1.0, my cucumber tests and ./script/server works. With 1.2.0, it fails with an undefined semantic_form_for.
Issue #439 suggests it's the missing rails/init.rb and/or init.rb, so I'll issue a 1.2.1.beta very soon. Please follow the new issue and help test the new beta.
Ok, 1.2.1.beta has been pushed, please test!
Also see #439
It seems to be working. My cucumber tests pass at least, where they all failed with 1.2.0.
Cucumber is a slightly different environment, so just to be sure... are the views rendering in a browser too?
Yep, works from the browser as well, at least with ./script/server. I haven't upgraded my production world yet so cannot confirm if it is fixed in production, but I imagine it should be.
added init.rb and rails/* to the files included in the gem (#439, #433)