Giter VIP home page Giter VIP logo

Comments (8)

excid3 avatar excid3 commented on August 31, 2024

That's interesting, I had noticed that on Madmin the other day that one of the commands wasn't showing. Wonder why that is?

from noticed.

drnic avatar drnic commented on August 31, 2024

AFAIK you just need that desc call before the generator method https://edgeguides.rubyonrails.org/generators.html#creating-your-first-generator but its been a while since I did write a generator

from noticed.

drnic avatar drnic commented on August 31, 2024

I'll try to fix it out of retro curiosity

from noticed.

drnic avatar drnic commented on August 31, 2024

Closing because I'm an idiot.

  • rails -T returns list of rake tasks
  • rails g returns list of generators
$ rails g
...
Noticed:
  noticed:delivery_method
  noticed:model
  noticed:notification
  • To get help for a generator:
$ rails g noticed:model --help
Usage:
  rails generate noticed:model [Notification] [field:type field:type] [options]
...

from noticed.

excid3 avatar excid3 commented on August 31, 2024

Ah! That makes sense.

Is it because of the rake file that you see things like rails turbo:install in rails -T

https://github.com/hotwired/turbo-rails/blob/main/lib/tasks/turbo_tasks.rake

from noticed.

excid3 avatar excid3 commented on August 31, 2024

Gonna reopen this. I think it would be handy to have both and we can have the rake task run the generator.

Should be an easy PR if someone wants to do this. 👍

from noticed.

rafaelpivato avatar rafaelpivato commented on August 31, 2024

Gonna reopen this. I think it would be handy to have both and we can have the rake task run the generator.

Maybe having one task per generator, or at least repeating the noticed:model generator, would just add trash to the tasks list.

What we could have is a noticed:install task that would call noticed:model and noticed:application_notification (see #94) generators.

from noticed.

excid3 avatar excid3 commented on August 31, 2024

I dunno, we're only going to have 3 generators. I don't think 3 will make anything messy.

from noticed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.