Immediately after performing the instruction outlined in page 86 of "Agile Web development with Rails" i.e., replacing the dynamic scaffold with a static scaffold, the "edit" [product] and "new product" cabability of the application stopped working. I went back and repeated all the steps from the beginning and the same thing happened again. Am I the only one with this problem? George --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
George wrote:> Immediately after performing the instruction outlined in page 86 of > "Agile Web development with Rails" i.e., replacing the dynamic scaffold > with a static scaffold, the "edit" [product] and "new product" > cabability of the application stopped working. I went back and > repeated all the steps from the beginning and the same thing happened > again. Am I the only one with this problem? > > GeorgeGeorge, Did you ever get this figured out? I''m having exactly the same problem on Mac OS X 10.4. I can''t seem to find anyone else with the same problem. DED -- 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?hl=en -~----------~----~----~----~------~----~------~--~---
DED wrote:> George wrote: >> Immediately after performing the instruction outlined in page 86 of >> "Agile Web development with Rails" i.e., replacing the dynamic scaffold >> with a static scaffold, the "edit" [product] and "new product" >> cabability of the application stopped working. I went back and >> repeated all the steps from the beginning and the same thing happened >> again. Am I the only one with this problem? >> >> George > > George, Did you ever get this figured out? I''m having exactly the same > problem on Mac OS X 10.4. I can''t seem to find anyone else with the > same problem. > > DEDI''m so new to Rails, and Ruby for that matter, I''m not sure why what I did worked.. but to solve this problem, if you look in "new.rhtml" the code that is generated has a "form_tag :action =>..." Not seeing any references to "form_tag" in the documentation, I changed this to "form_for :product, action =>..." this seemed to work. No idea why. DED -- 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?hl=en -~----------~----~----~----~------~----~------~--~---
For reference, here''s a link to the docs on both of them. form_tag: http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#M000491 form_for: http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#M000387 Someone more familiar with the examples should be stopping by soon to answer the why part. Matt On Sun, 2007-01-07 at 02:39 +0100, DED wrote:> DED wrote: > > George wrote: > >> Immediately after performing the instruction outlined in page 86 of > >> "Agile Web development with Rails" i.e., replacing the dynamic scaffold > >> with a static scaffold, the "edit" [product] and "new product" > >> cabability of the application stopped working. I went back and > >> repeated all the steps from the beginning and the same thing happened > >> again. Am I the only one with this problem? > >> > >> George > > > > George, Did you ever get this figured out? I''m having exactly the same > > problem on Mac OS X 10.4. I can''t seem to find anyone else with the > > same problem. > > > > DED > > I''m so new to Rails, and Ruby for that matter, I''m not sure why what I > did worked.. but to solve this problem, if you look in "new.rhtml" the > code that is generated has a "form_tag :action =>..." Not seeing any > references to "form_tag" in the documentation, I changed this to > "form_for :product, action =>..." this seemed to work. No idea why. > > DED > >--~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
Dave Thomas
2007-Jan-07 04:46 UTC
Re: Depot Project page 86 Error in Edit and New Product?
On Jan 6, 2007, at 7:39 PM, DED wrote:> I''m so new to Rails, and Ruby for that matter, I''m not sure why > what I did worked.. but to solve this problem, if you look in > "new.rhtml" the code that is generated has a "form_tag :action > =>..." Not seeing any references to "form_tag" in the > documentation, I changed this to "form_for :product, action =>..." > this seemed to work. No idea why.Is there any chance you might have mistyped the name of the model when generating the scaffolding? I just tried it again here to double- check (on OSX) and it works fine. Dave --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---