Andrew Timberlake wrote: > On Sun, May 24, 2009 at 11:32 AM, SpringFlowers AutumnMoon > <[email protected]> wrote: >> > I think it's important that you forget about the loop and focus on > blocks, once you've understood blocks, it will no longer look like a > loop and you'll understand that you really don't want to write it a > different way (even though it's possible)
can i use something like: (just pseudo code) with (@story) do |f| f.begin_form f.textfield :name f.end_form end so i think the block method will save the begin_form and end_form because it automatically add the begin and end before calling the block. is that the main benefit? -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

