Forum: Ruby on Rails Rails AJAX scaffold generator question: organization

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
602f73f02a8b8abcf01ca093e1762006?d=identicon&s=25 Micah Bly (yak)
on 2006-03-01 21:24
Rails noobie here.

I've gem'ed Richard White's AJAX scaffold generator, and hooked it up to
one of my tables, did some tweaking, and am very pleased with the ease
of this first test.  But my question is how I should incorporate this
into my actual app.  In my app, the table I want to use this AJAX on
belongs_to another table. I have one main controller in the app,
Project.  In the test app I built for the ajax test, i have
"ProjectNote" as the controller I generated.

In my app, I don't ever want to edit notes in general, I only want to
edit/create them in the context of the project they belong to.  So do I
move the CODE from the ProjectNote controller, and put it in my Project
controller? And move/rename the view files from the projectnote
directory, to the project directory?

Or do I somehow access the ProjectNote controller through the project
controller when I want to show notes? Cornfused...

Any advice or pointers to documentation would be really appreciated.

Micah
This topic is locked and can not be replied to.