Open link in a new tab

Content

Expand project menu

model generation in generated plugin

Hi,
If I run

bundle exec rails generate model Qtasks name:string —no-test-framework

in proto_plugin directory, everything is generated. If I do the same in directory generated by

bundle exec rails generate open_project:plugin qtask ../plugins/

I get “Could not locate Gemfile or .bundle/ directory”

I had to copy Gemfile and bin/rails from proto_plugin to generated one. Also, to change ENGINE_PATH in bin/rails to make further steps. But what is the right way to make these files appear in the generated plugin?

Yes, I’m beginner in ruby/rails/openproject programming. This step took too much hours from me (and I’m not sure I did it right!). So could please document this step. Thank you!