All threads / No value provided for option '--orm' Error
Ask A Question

Notifications

You’re not receiving notifications from this thread.

No value provided for option '--orm' Error

Omar asked in Databases

Question:
I tried to set up a polymorphic model and got the following error:

no value provided for option '--orm'

I'm using Rails 7 and postgresql
I tried most probably solutions I found and reviewed my config file but no luck

Does anyone had a similar issue related to this error or can give me a insight to resolve it?

I did:
rails generate model order orderable:references{polymorphic} name:string
And I get "No value provided for option '--orm'

I run:
rails generate resource order orderable:references{polymorphic} name:string
And I get And I get "No value provided for option '--resource-controller'

In both case scenarios I tried byadding --orm=active_record and enclosing parameters in "name:string" but does not work neither.

Does anyone had the same problem?

One of the earliest instances of woven textiles, stripes have been used in the clothing industry ever since.

I have the same problem as you

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 68,326+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2022 GoRails, LLC. All rights reserved.