Hey why dont you try out partial view. They heavily solve your problem
of user creation and topic addition on the same page itself . You can
add the add topic partial they in the edit user said itself thereby
solving the problem
On 1/30/11, Alexander Farley <lists@ruby-forum.com> wrote:
> Hi, I'm new to db/web stuff so I have some basic questions. Basic
> question: I don't know what to add to my existing scaffolding-generated
> CRUD.
>
> This project requires "Users" who own many unique "Topics". Each "Topic"
> will contain a "Blacklist" textfile, several "Rawtext" textfiles and
> several "Webtext" textfiles. Some string-parsing code will use the
> "Blacklist" file to process the "Rawtext" file, yielding the processed
> "Webtext" files.
> So far I have a database with tables for "Users", "Topics",
> "Blacklists", "Rawtexts", "Webtexts".
>
> I have used scaffolding to generate basic CRUD functionality for each. I
> have specified the has_many and belongs_to relationships in
> /app/models.
>
> The "Topic" table contains user_id:integer and searchstring:string
> attributes. I have manually created a "Topic" entry corresponding to an
> existing user_id, and modified my user/show.html.erb to display the
> user's topics.
>
> So, here's my goal: I want an "intuitive" flow of "create user"->"create
> user's topics" -> "add blacklist for topic". Right now, my "edit user"
> view doesn't allow adding topics (topics must be added manually, with a
> known user_id).
>
> Am I going in the right direction? Is there a normal/default way of
> editing (adding) a table entry's "children"?
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
Sent from my mobile device
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment