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?

Reply

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?

Reply

Did you pass in any parameters to rails new when creating the app?

Reply
Join the discussion
Create an account Log in

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

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

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