search for: apotonick

Displaying 6 results from an estimated 6 matches for "apotonick".

2013 Jul 10
4
Decoupling of ActionPack
Hello! Are the plans of splitting ActionPack for several gems (AbstractController, ActionView, etc)? Like https://github.com/rails/rails/pull/7356 ... I.e. I know gems that are needed AbstractController only... And they are forced to require the whole ActionPack... Thanx. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To
2010 Oct 21
0
ExampleGroup in Rspec 2
Hello, In Rspec 1.x I I could create custom ExampleGroups that would have behaviour similar to controller specs. How can I accomplish something similar to this in Rspec 2? I would like to create an example group to test my Cells instances ( http://github.com/apotonick/cells ). Thanks!
2010 Apr 01
1
How to improve rails helpers
...The post [2] studies briefly how rails'' own helpers could be cleaned up with ActiveHelper. Consider it as an RFC, i''m waiting for comments, critics, proposals etc as I really wanna improve rails (although i keep grumbling ''bout it ;-) cheers, nick [1] http://github.com/apotonick/active_helper [2] http://apotomo.de/2010/04/making-a-rails-helper-predictable/ -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.or...
2012 Sep 28
1
How to Include Associations in #as_json
Hi, Does anyone know how to include nested associations when overriding a model''s #as_json method? Below is my attempt to include direct and nested associations. NOTE: "office" is a direct association, "company" is nested association via "office". I''d like both included in the generated json output. def as_json(options={}) super(:include
2011 Sep 12
2
Using tilt in ActionView?
Hey friends, I was wondering what is the current opinion on using tilt in ActionView? Right now, there''s a lot of code in AV::Template/ TemplateHandler etc. which is nicely implemented in tilt. I''m currently refactoring the AV layer (private interest ;-) using tilt and it makes the whole thing much more readable and easier to follow. What do you guys think? I know there was a
2010 Oct 05
0
10 Points How Cells Improves your Rails Architecture
What steps does it take to improve your architecture with Cells? This article [1] discusses the best practices from keeping views dumb, via slim controllers, how to avoid messy helpers, through to hiding your caching strategy and component-oriented teams. [1] http://nicksda.apotomo.de/2010/10/10-points-how-cells-improves-your-rails-architecture/ -- You received this message because you are