Jacques, When you do that, please post the instructions somewhere :)
Thanks, -J On Fri, Feb 5, 2010 at 1:04 PM, Jacques Crocker <[email protected]> wrote: > Cool, I'll give that a try. Thanks for the tip. > > > On Feb 5, 2010, at 11:03 AM, Yehuda Katz wrote: > > Jacques, > > Unfortunately, the built-in ERB engine didn't get updated for 3.0. It's > close to the top of my list for 3.1. Thankfully, that needn't post any major > problem for migration. > > Specifically, you can make a :merb template engine with the > BlockAwareEnhancer applied and then just make your merb helpers > foo.html.merb. > > Yehuda Katz > Developer | Engine Yard > (ph) 718.877.1325 > > > On Fri, Feb 5, 2010 at 2:45 AM, Jacques Crocker <[email protected]>wrote: > >> Scratch that. merb-helpers probably isn't portable to Rails 3. Why? My >> first big disappointment with Rails 3 is they kept the horrendously >> bad view helper idiom of: >> >> <% form do %> >> ... >> <% end %> >> >> My favorite feature of merb was that helpers just returned a string >> (and not crazy hacks using concat and buffers). Similar to: >> >> >> <%= form do %> >> ... >> <% end =%> >> >> Writing reusable view helpers with rails is a nightmare, and I don't >> see that changing in Rails 3. >> >> I could have sworn I saw Yehuda's blog post that he found a way to >> make <%= some_helper do %> <% end %> work in Rails3. Not sure why it >> got removed. Here's the post >> >> http://yehudakatz.com/2009/08/31/simplifying-rails-block-helpers-with-a-side-of-rubinius/ >> >> I dunno, maybe its still possible and I'm just missing something. I'll >> keep investigating. >> >> >> On Feb 4, 8:34 pm, Jacques Crocker <[email protected]> wrote: >> > Updating one of my apps at the moment. >> > >> > I'm currently porting merb-helpers to run ontop of Rails3. I'll still >> have to update all my controllers and routes, but at least maybe I can reuse >> my views. >> > >> > Will keep you posted. >> > >> > On Feb 4, 2010, at 8:29 PM, Greg Campbell wrote: >> > >> > >> > >> > > Now that the Rails 3 beta is out, I'm curious to hear if people are >> > > starting to test out migrating from Merb apps. Any strategies or >> > > "gotchas" worth discussing? >> > >> > > -- >> > > You received this message because you are subscribed to the Google >> Groups "merb" group. >> > > To post to this group, send email to [email protected]. >> > > To unsubscribe from this group, send email to >> [email protected] <merb%[email protected]>. >> > > For more options, visit this group athttp:// >> groups.google.com/group/merb?hl=en. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "merb" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected] <merb%[email protected]>. >> For more options, visit this group at >> http://groups.google.com/group/merb?hl=en. >> >> > > -- > You received this message because you are subscribed to the Google Groups > "merb" 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/merb?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups > "merb" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected] <merb%[email protected]>. > For more options, visit this group at > http://groups.google.com/group/merb?hl=en. > -- You received this message because you are subscribed to the Google Groups "merb" 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/merb?hl=en.
