[Rails] Nested forms

2009-05-19 Thread mel ram
http://pastie.org/private/ju5htjk8kqjdqik94br0nw Line 11 in this pastie is causing errors. errors are including in pastie. I was basing this on the example on http://ryandaigle.com/articles/2009/2/1/what-s-new-in-edge-rails-nested-attributes ... any ideas on what I'm doing wrong? --~--~-~

[Rails] Re: Best Practice for nested resources

2009-01-23 Thread mel ram
You might want to check out resource_controller http://jamesgolick.com/2007/10/19/introducing-resource_controller-focus-on-what-makes-your-controller-special On Jan 23, 2:09 pm, Neal L wrote: > Hi all, > > I'm writing an app that has a reporting component.  All of the reports > are in a control

[Rails] Re: How to save the images created using ajax call

2009-01-23 Thread mel ram
You might check out my example app for uploading images via ajax-like functionality. http://github.com/melvinram/ajax-image-upload/ On Jan 23, 7:26 pm, Kumar Saurav wrote: > Hi All, > > I  am using Ajax call with form_remote_tag through which image is > generated now i have to put a save button

[Rails] Architecture/model related question

2008-11-24 Thread mel ram
I've currently got 3 models: User, Lesson and Course The associations are: * Lesson belongs_to Course * Course has_many Lessons * Course belongs_to User * User has_many Courses Now I'm adding a new model for LessonCompletion, which will be used to track which lessons the user has completed and