Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Development
  1. OpenProject
  2. Forums
  3. Development
  4. model generation in generated plugin

model generation in generated plugin

Added by Aidas Kasparas over 7 years ago

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!


Loading...