Upgrading to 1.2.0.beta2 -> semantic_form_for is undefined #433

Closed
Rio517 opened this Issue Nov 12, 2010 · 13 comments

Projects

None yet

4 participants

@Rio517
Rio517 commented Nov 12, 2010

Hi,

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.

Thanks!

-Mario

@justinfrench
Owner

Does everything work as expected with ERB instead?

@justinfrench
Owner

Please also double check you restarted your server after installing everything.

@stealestate

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:
source :rubygems
gem "rails", "2.3.10"
gem "sqlite3-ruby", :require => "sqlite3"
gem "warden"
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'
gem 'geokit'
gem 'haml'

@justinfrench
Owner

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?

@Rio517
Rio517 commented Nov 13, 2010

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.

@justinfrench
Owner

I can't reproduce this, closing for now. Happy to be shown exactly how on a small test app.

@skandragon

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.

@justinfrench
Owner

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.

@justinfrench
Owner

Ok, 1.2.1.beta has been pushed, please test!
Also see #439

@skandragon

It seems to be working. My cucumber tests pass at least, where they all failed with 1.2.0.

@justinfrench
Owner

Cucumber is a slightly different environment, so just to be sure... are the views rendering in a browser too?

@skandragon

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.

@justinfrench
Owner

great, thanks

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment