Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Create class generator from routes.rb file

#20

It'd be great if we could create stub ObjRres model classes just by running a rake task from within the backend Rails app that reads the required models and custom routes from the app's routing.rb?:

rake objectiveresource:generate

Or even use Rails' generators to do the same and distribute as a plugin?

script/generate objectiveresource_model User

This would be a potential productivity boon.

Reported by Ryan Daigle · January 26th, 2009 @ 12:04 PM

State: new
Milestone: none
Assigned to: jjburka jjburka

Activity

  1. Joshua Vickery
    Joshua Vickery
    • Assigned user set to jjburka

    It might optionally generate the Rails resources as well.

    James, maybe my brain is fuzzy, but I thought you had something like this?

    February 6th, 2009 @ 07:42 AM

  2. jjburka
    jjburka

    I do , it will need to be updated and cleaned up.

    February 6th, 2009 @ 09:28 AM

  3. Ryan Daigle
    Ryan Daigle

    As I recall, it was very simple. It didn't know what custom actions or nested resources there were etc...

    February 6th, 2009 @ 10:59 AM

  4. jjburka
    jjburka

    it was. perhaps "will need to be updated' should of been 'will need to be rewritten'

    February 6th, 2009 @ 11:10 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.