Create class generator from routes.rb file
Reported by Ryan Daigle | January 26th, 2009 @ 12:04 PM
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.
Comments and changes to this ticket
-
Joshua Vickery February 6th, 2009 @ 07:42 AM
- 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?
-
Ryan Daigle February 6th, 2009 @ 10:59 AM
As I recall, it was very simple. It didn't know what custom actions or nested resources there were etc...
-
jjburka February 6th, 2009 @ 11:10 AM
it was. perhaps "will need to be updated' should of been 'will need to be rewritten'
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Port of Rails' ActiveResource framework to the iPhone.