Skip to content
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

SimpleForm/Suspenders fails to install due to lack of template engine #833

Closed
huwd opened this issue Mar 18, 2017 · 3 comments
Closed

SimpleForm/Suspenders fails to install due to lack of template engine #833

huwd opened this issue Mar 18, 2017 · 3 comments

Comments

@huwd
Copy link

huwd commented Mar 18, 2017

Hey folks,

I've been running into an error, it appears to be with simple_form, but currently breaks the suspenders install process. Is anyone else experiencing a similar issue?

System

~ rbenv local
2.4.0
~ suspenders -v
1.44.0
~ lsb_release -r
Release:	16.10

Suspenders Command

suspenders zi --api initially and had experienced the failure.
Later attempted to re-run with suspenders zi -s --api giving the following log of bundle here.

Error

Error lists

Could not find "_form.html." in any of your source paths. Your current source paths are: 
/home/user/Documents/currentProjects/zi/lib/templates/simple_form/install
/home/user/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/simple_form-3.4.0/lib/generators/simple_form/templates

The simple form generator requires a template engine which does not appear to being passed around here...

Suspenders or Simple Form

Running bundle exec rails generate simple_form:install also fails but rails generate simple_form:install -e erb succeeds!

However then trying to run suspenders zi -s --api doesn't seem to skip that step and so the issue repeats.

@huwd
Copy link
Author

huwd commented Apr 8, 2017

Thinking about this, I've overcomplicated. Why would simpleform try to install if i use --api?
It's only a front-end use right?

@mike-burns
Copy link
Contributor

Yup.

How about introducing a suspenders:api generator that only runs the generators we'd want for an API app, and then conditionally running specific generators based on whether --api is passed?

@stevepolitodesign
Copy link
Contributor

Closed by #1135. We now raise if new suspenders:install:web generator is run in the context and an API only application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants