I''ve been working my way through installing AjaxScaffold 3.1.0 and getting the associations_demo working. I''ve been correcting my various misinterpretations (and outright guesses sometimes) to get thing working but this one has me stumped. The forms all come up fine, but whenever I click on a Create, Update, Edit, Delete, or even a Cancel link, the little "working" animated ring comes up and never goes away. The action is not performed and no error message appears, only the ring keeps moving. Does this scenario ring a bell for anyone who''s used (or created - hint, hint to Richard White) this demo? I''m new to Ruby and Rails, and I haven''t learned yet how to set a breakpoint and step through my code. Can anyone point me to the right areas to look and maybe give a quick simple instruction on how to set a breakpoint there and step through? I am not coming from a Java or PHP background; I''m a desktop database application developer who wants to create a web-based version of an application. I messed something up between pet and pets and have been making little corrections all along. Maybe that''s a clue? By the way, it would be helpful for newbies to this demo to have the setup instructions from beginning to end in one place, including the expected table structure. This is such an amazing demo that does a big piece of what I need Rails/Ajax to do. Thanks, Shauna -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
franco.fallica-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Aug-22 08:12 UTC
[Rails] Re: ajax_scaffold demo
Is the database getting updated when executing an action and your just don''t see the answer from the server? or will the request never be send. You can find that out by looking at the logs/development.log file. When you changed something in the tables (fieldnames, tablenames etc. ) I recomend to run the ajax scaffold generator again, if your not sure what needs to be changed - that may fix your errors. Attention on which files to overwrite. you can read about the debuging stuff here: http://wiki.rubyonrails.com/rails/pages/HowtoDebugWithBreakpoint And there something like a javascript debugger for firefox - but I don''t know how it''s called. ask google. hope that helps --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
The javascript debugger for firefox is called firebug. I agree that the silent failures can be fairly annoying. I''m not sure whether that is specific to ajax_scaffold, or is inherent in Rails itself. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Shauna wrote:> I''ve been working my way through installing AjaxScaffold 3.1.0 and > getting the associations_demo working. I''ve been correcting my various > misinterpretations (and outright guesses sometimes) to get thing working > but this one has me stumped. The forms all come up fine, but whenever I > click on a Create, Update, Edit, Delete, or even a Cancel link, the > little "working" animated ring comes up and never goes away. The action > is not performed and no error message appears, only the ring keeps > moving. > > Does this scenario ring a bell for anyone who''s used (or created - hint, > hint to Richard White) this demo? I''m new to Ruby and Rails, and I > haven''t learned yet how to set a breakpoint and step through my code. > Can anyone point me to the right areas to look and maybe give a quick > simple instruction on how to set a breakpoint there and step through? I > am not coming from a Java or PHP background; I''m a desktop database > application developer who wants to create a web-based version of an > application. > > I messed something up between pet and pets and have been making little > corrections all along. Maybe that''s a clue? By the way, it would be > helpful for newbies to this demo to have the setup instructions from > beginning to end in one place, including the expected table structure. > This is such an amazing demo that does a big piece of what I need > Rails/Ajax to do. > > Thanks, Shauna > > -- > Posted via http://www.ruby-forum.com/.I''ve encountered this only when the server was not runing. do a ps -x | grep server you should see a line containing "ruby script/server" --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
H Shauna, I''ve used Rich''s ajax scaffold generator extensively in my application http://www.webtestlive.com. The spinning circles and the people/pets demo did drive me bonkers for a few weeks. The secret is to pay attention to pluralization of the model names. If I was doing a Teachers/Students scaffold based on the People/Pets I found it very helpful to write down this and keep referring to it while making the changes to the scaffold PEOPLE => PETS TEACHERS => STUDENTS So every time I see PETS I would substitute STUDENTS Every time I see PERSON I would substitute TEACHER The thing to watch for is the pluralisation. The other thing to be careful with is model names with more than 1 word e.g. STUDENT_SUBJECTS. If you check your development.log file it should tell you what error has occurred when you get spinning circles. You''ll probably find you keep clearing the log and keeping it open a lot while debuggging! hope this helps --john Shauna wrote:> I''ve been working my way through installing AjaxScaffold 3.1.0 and > getting the associations_demo working. I''ve been correcting my various > misinterpretations (and outright guesses sometimes) to get thing working > but this one has me stumped. The forms all come up fine, but whenever I > click on a Create, Update, Edit, Delete, or even a Cancel link, the > little "working" animated ring comes up and never goes away. The action > is not performed and no error message appears, only the ring keeps > moving. > > Does this scenario ring a bell for anyone who''s used (or created - hint, > hint to Richard White) this demo? I''m new to Ruby and Rails, and I > haven''t learned yet how to set a breakpoint and step through my code. > Can anyone point me to the right areas to look and maybe give a quick > simple instruction on how to set a breakpoint there and step through? I > am not coming from a Java or PHP background; I''m a desktop database > application developer who wants to create a web-based version of an > application. > > I messed something up between pet and pets and have been making little > corrections all along. Maybe that''s a clue? By the way, it would be > helpful for newbies to this demo to have the setup instructions from > beginning to end in one place, including the expected table structure. > This is such an amazing demo that does a big piece of what I need > Rails/Ajax to do. > > Thanks, Shauna-- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---