-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generator issue with Formtastic dependency #104
Comments
when you use bundler to install the surveyor gem, haml, fastercsv, and formtastic should be installed as gem dependencies. |
require formtastic. closed by 16acd6f |
I was able to replicate the problem, and we'll release 0.19.1 as a fix. |
Cool. Thanks! |
Hi, I'm still having this issue on Rails3 branch and surveyor v 0.20.0 this version: Using surveyor (0.20.0) from git://github.com/NUBIC/surveyor.git (at rails3) I have tracked it down to the file surveyor.rb:9 where trying to access Formtastic::SemanticFormHelper.builder = Formtastic::SurveyorBuilder; it seems the require require 'formtastic/surveyor_builder' is not loading the formtastic helper or for some reason I have not figure out yet ignoring it. I have not been able to include the helper manually to see if that fixes the problem, that is what I would try next. Any Ideas? |
It may be due to an issue with the new version of formtastic - are you Mark A. Wimbiscus Yoon On Tue, Sep 27, 2011 at 10:44 AM, Edgar O Silva
|
Yeap using formtastic 2.0.0 and I also tried with rc5 (it was default on my project) and it also couldn't find the constant, it seems, as you mentioned and issue with extending the SemanticFormBuilder and trying to setup the Formtastic builder to the SurveyorBuilder(I have not found the reason for this). The default line to setup the builder = FormtasticSurveyorBuilder surveyor.rb:9 throws an unitialized constant error.
|
From: https://github.com/justinfrench/formtastic "It was previously recommended in Formtastic 1.x to subclass For now, you will have to use an earlier version of formtastic, or Mark A. Wimbiscus Yoon On Tue, Sep 27, 2011 at 11:38 AM, Edgar O Silva
|
I see... yeah I tried that and did not work as expected... or probably it did since I was expecting it to fail :-)... Ok Mark sounds fine, I'll give it a try with an older version of Formtastic(any specific version you can recomend that works fine?) and I'm also going to check the Formtastic class style (is this file the SurveyorBuilder definition?), and see if something can be done. Thanks a lot for your help, if I find out anything I'll let you know. regards |
Edgar, I don't have a specific version of formtastic to recommend, but I'm referring to: Changing Existing Input Behavior at: https://github.com/justinfrench/formtastic Mark A. Wimbiscus Yoon On Tue, Sep 27, 2011 at 11:56 AM, Edgar O Silva
|
I encountered the same error here, formtastic 2.2.1. |
When I try running the surveyor generator it breaks with the following error:
I've truncated things for easier readability.
The text was updated successfully, but these errors were encountered: