Nested scaffold option
Reported by Albert Callarisa | May 25th, 2009 @ 02:24 PM | in Someday/Maybe
I think that can be useful to have a new scaffold option to specify nested resource. Something like that:
script/generate ubiquo_scaffold comment body:string --nested-from article
to generate somethinglike /article/1/comments, etc...
and:
script/generate ubiquo_scaffold comment body:string --nested-from user,post
to generate something like /user/1/posts/2/comments
This option will add the expected foreign key. Also will adapt everithing to work as a nested resource.
Comments and changes to this ticket
-

Bernat Foj Capell April 10th, 2010 @ 11:46 AM
- → Milestone changed from Ideas to 0.8
-

Albert Callarisa July 17th, 2010 @ 01:18 PM
- → State changed from new to open
-

Albert Callarisa July 17th, 2010 @ 01:27 PM
Things to do:
- Add expected code to routes.rb (Attached in this comment)
- Update all the routes helpers links
- Update navlinks
- Fix helper code
- Load the parent in a before filter (load_parent)
-

Bernat Foj Capell October 21st, 2010 @ 11:24 AM
- → Tag set to patches
-

Ramon Salvadó October 25th, 2010 @ 09:17 AM
(from [a665e4dbb1fd292bb5654f3725732839b7a8b9ba]) Added --nested-from option [#111] http://github.com/gnuine/ubiquo_scaffold/commit/a665e4dbb1fd292bb56...
-

Ramon Salvadó October 25th, 2010 @ 09:19 AM
(from [d1dafa0385a4dc1a1ede67ce918da4dab8b42da5]) Added automatic nested routes addition [#111] http://github.com/gnuine/ubiquo_core/commit/d1dafa0385a4dc1a1ede67c...
-

Bernat Foj Capell October 25th, 2010 @ 09:20 AM
- → Tag changed from patches to ubiquo_core, ubiquo_scaffold
-

Bernat Foj Capell December 13th, 2010 @ 03:39 PM
- → Milestone changed from 0.8 to 0.8.1
-

Bernat Foj Capell December 20th, 2011 @ 03:49 PM
- → Milestone changed from 0.8.1 to Someday/Maybe
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 »
Ruby on Rails based application framework.
Check the ubiquo website.
Source available from github
Ubiquo plugins can be found at http://github.com/gnuine
Check out the development master (Edge ubiquo):
gem install ubiquo
ubiquo --edge myapp
Creating or reviewing a patch
See the contributor guide.
Creating a feature request
If you want a new feature in Ubiquo it's best to implement it yourself.
Creating a bug report
When creating a bug report, be sure to include as much relevant information as possible. Post the code sample that causes the problem. Preferably, alter the unit tests and show through either changed or added tests how the expected behavior is not occuring.
People watching this ticket
Attachments
Referenced by
-
#279 ubiquo_scaffold generators do not support namespaced models
I think that some of the modifications are similar to the...
-
#111 Nested scaffold option
(from [a665e4dbb1fd292bb5654f3725732839b7a8b9ba])
Added -...
-
#111 Nested scaffold option
(from [d1dafa0385a4dc1a1ede67ce918da4dab8b42da5])
Added a...