Ruby on Rails Tuesday, July 3, 2012

I'm a relative n00b when it comes to Rails. I've gone through Michael Hartl's tutorials (both editions, books and screencasts) and I can build a basic CRUD web app without help. However, for a personal project I'm working on, I'm lost as to how to move forward. Here's the situation ...


I have a model called Project with two fields, name:string and due:date. Project is associated (has_many) with a model called Task (with rows description:text, status:text, and project_id:integer) which is associated back to Project with belongs_to. All this works fine.

What I'd really like to be able to do is click on a particular project on the Project#index page and be taken to a page that lets me enter as many tasks as I need ... not just one at a time. I'm wondering how I can do this? Do I need to use AJAX or one of the popular JS frameworks?

Can anyone point me to an example of how to do this?

Thanks in advance!

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/tYkX0nbQcZcJ.
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-US.

No comments:

Post a Comment