The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Rails Core Weekly July 2 - July 16

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
rodney ramdas

Posts: 66
Nickname: pinupgeek
Registered: Jun, 2006

Rodney Ramdas is a de-enterprised Ruby on Rails developer from the Netherlands.
Rails Core Weekly July 2 - July 16 Posted: Jul 16, 2006 2:54 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by rodney ramdas.
Original Post: Rails Core Weekly July 2 - July 16
Feed Title: pinupgeek.com
Feed URL: http://feeds.feedburner.com/pinupgeek
Feed Description: A personal take on Ruby and Rails
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by rodney ramdas
Latest Posts From pinupgeek.com

Advertisement

[ thread ]

Somehow in the last RCW I missed Johm-Mason P. Shackleford proposal to:

  • allow Rails to load a plugin from gem
  • permit the plugin script to install them
  • give the plugin generator’s default Rake file the ability to package and publish a gem
  • introduce freeze/unfreeze for plugins

Jeremy Kemper agrees gems are a good fit. Exciting stuff.

[ thread ]

Martin is working on patch that in his opinion improves on ActionController filters. His solution could work like this:

  add_filter :filter => ProjectScope.new, :except => [:list,:index]
  class ProjectScope
    def filter(controller)
      Project.with_scope( ..etc.. )
        yield
      end
    end
  end

  add_filter :filter => :project_scope, :except => [:list, :index]
  def project_scope
    yield
    # this way drops the clean filter scope in favor of the simplicity of using controller methods.
  end

This would make before and after filters unnecessary.

[ thread ]

Peter Michaux would like a label helper that does :


<%= f.label :name %> 

Turns out Rick Olson wrote a plugin that does: http://svn.techno-weenie.net/projects/plugins/labeled_form_helper/ There’s a discussion about this plugin and the general question is ‘why isn’t this in core ?’.

[ thread ]

Tom Ward wants to hug SQL Server some more. He’s working on an aggregated patch and his work is much appreciated.

[ >thread ]

Francois Beausoleil’s route:

map.game_instructions 'game/:game/instructions', :controller => 'games',
    :action => 'instructions', :requirements => {:game => /\A[-\w 
\+%]+\Z/i}

fails miserably with revision r4498. Jamis is spot on when he advises to take out the \A and \Z from the regexp. Nicholas adds => /[a-z]/ routes should interpret this as \A[a-z]\Z. There for ^, \A, \Z, and $ inside regexp captures for requirements is not required, and should not be allowed”. Francois then suggests he writes a patch to help those who will encounter this on their paths. Nicholas point him in the right direction.

Caio Chassot ran into an issue where flash was not swept if the filter chain was halted. Caio supplies a full test scenarion, go read it. Ricks promises he’ll give it some attention over the weekend to fix it.

[ thread ]

Finally, Zach is spicing up AR with Optimizations promising us performance improvement of 400%-600%....

Read: Rails Core Weekly July 2 - July 16

Topic: "Loaded suite" in browser problem Previous Topic   Next Topic Topic: Rails - validates_unlike plugin : validate that an attribute doesn't match against a RegExp

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use