<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>James on Software - Latest Comments in Introducing ActivePresenter: The presenter library you already know.</title><link>http://jamesonsoftware.disqus.com/</link><description></description><atom:link href="https://jamesonsoftware.disqus.com/introducing_activepresenter_the_presenter_library_you_already_know_16/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 26 Feb 2009 21:51:00 -0000</lastBuildDate><item><title>Re: Introducing ActivePresenter: The presenter library you already know.</title><link>/2008/7/27/introducing-activepresenter-the-presenter-library-you-already-know.html#comment-7963269</link><description>&lt;p&gt;@nate – About your uninitialized constant problem… find active_presenter/lib/tasks/gem.rake and add this to the top:&lt;/p&gt;&lt;p&gt;require File.expand_path(File.dirname(__FILE__) + '/../active_presenter')&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Steven Luscher</dc:creator><pubDate>Thu, 26 Feb 2009 21:51:00 -0000</pubDate></item><item><title>Re: Introducing ActivePresenter: The presenter library you already know.</title><link>/2008/7/27/introducing-activepresenter-the-presenter-library-you-already-know.html#comment-7963234</link><description>&lt;p&gt;Hey,&lt;br&gt;James I found some problems when I used this gem with select_tags and names of models are like this&lt;/p&gt;&lt;p&gt;presents :photographer,  &lt;br&gt;    :user, &lt;br&gt;    :location, &lt;br&gt;    :photographer_award, &lt;br&gt;    :photographers_language, &lt;br&gt;    :photographer_nationality, &lt;br&gt;    :photographer_reference, &lt;br&gt;    :visa&lt;/p&gt;&lt;p&gt;so when I want to put &amp;lt;%= &lt;a href="http://f.select" rel="nofollow noopener" target="_blank" title="f.select"&gt;f.select&lt;/a&gt; :photographer_language_language_id, [[l(:select_one), nil]] + @languages.collect{|language| [l(:spoken_language, language.name.to_sym), &lt;a href="http://language.id" rel="nofollow noopener" target="_blank" title="language.id"&gt;language.id&lt;/a&gt;]}, :id =&amp;gt; nil  %&amp;gt;&lt;/p&gt;&lt;p&gt;and photographer_language_language_id is to catch language_id field from photographer_languages table&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Samiha</dc:creator><pubDate>Wed, 28 Jan 2009 05:03:00 -0000</pubDate></item><item><title>Re: Introducing ActivePresenter: The presenter library you already know.</title><link>/2008/7/27/introducing-activepresenter-the-presenter-library-you-already-know.html#comment-7963152</link><description>&lt;p&gt;Ok, sorry again... I guess there's some issues with the different versions of the gems/plugins I'm using.  I switched to the version with Spree and now it's working.  Thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pat Osterday</dc:creator><pubDate>Fri, 05 Dec 2008 13:47:00 -0000</pubDate></item><item><title>Re: Introducing ActivePresenter: The presenter library you already know.</title><link>/2008/7/27/introducing-activepresenter-the-presenter-library-you-already-know.html#comment-7963150</link><description>&lt;p&gt;Ok, I figured out some of my problems with ActivePresenter and ResourceController and it's working now except for "error_messages_for :payment_presenter".  I always get "can't convert Array into String" errors.  Not sure if you still check out these comments James, but any help would be appreciated.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pat Osterday</dc:creator><pubDate>Fri, 05 Dec 2008 12:48:00 -0000</pubDate></item><item><title>Re: Introducing ActivePresenter: The presenter library you already know.</title><link>/2008/7/27/introducing-activepresenter-the-presenter-library-you-already-know.html#comment-7963149</link><description>&lt;p&gt;I'd love to see a full example of this working with ResourceController.  The Spree code doesn't really make full use of ActivePresenter and I didn't think the Blank app did either.  I tried for hours to get it to work and gave up.&lt;/p&gt;&lt;p&gt;If I have a User model with an Address as Addressable, how would this work?  I tried doing a UserPresenter using the UserController directly, then a ProfilePresenter using a seperate ProfileController and nothing would work.&lt;/p&gt;&lt;p&gt;In particular an edit example would be great.  Or maybe I just missed something!&lt;/p&gt;&lt;p&gt;Anyway... great work!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pat Osterday</dc:creator><pubDate>Wed, 03 Dec 2008 22:54:00 -0000</pubDate></item><item><title>Re: Introducing ActivePresenter: The presenter library you already know.</title><link>/2008/7/27/introducing-activepresenter-the-presenter-library-you-already-know.html#comment-7962911</link><description>&lt;p&gt;ActivePresenter seems to be doing two things: handling presentation logic for one or more models, and also handling save/update logic for more than one model. It's meddling in two distinct and completely separate responsibilities. This seems to encourages bad practice when it comes to dealing with either presentation logic and/or multiple model forms. Presenters should only be handling presentation logic. The save/update logic should be done in the model, or if it can't be done there in a domain Service/Manager object.&lt;/p&gt;&lt;p&gt;CachingPresenter is a strict presentation-logic presenter. It does cool stuff with caching/memoization. Should it provide useful to James or anyone else seeing this post please check it out:&lt;/p&gt;&lt;p&gt;* Github - &lt;a href="http://github.com/zdennis/caching_presenter/" rel="nofollow noopener" target="_blank" title="http://github.com/zdennis/caching_presenter/"&gt;http://github.com/zdennis/c...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;* Docs - &lt;a href="http://github.com/zdennis/caching_presenter/wikis/home" rel="nofollow noopener" target="_blank" title="http://github.com/zdennis/caching_presenter/wikis/home"&gt;http://github.com/zdennis/c...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">zdennis</dc:creator><pubDate>Sun, 05 Oct 2008 00:30:00 -0000</pubDate></item><item><title>Re: Introducing ActivePresenter: The presenter library you already know.</title><link>/2008/7/27/introducing-activepresenter-the-presenter-library-you-already-know.html#comment-7962857</link><description>&lt;p&gt;@Max - Sure. If there's a need for one, I can definitely add it. Could you not put that validation in one of the models, though?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Golick</dc:creator><pubDate>Mon, 22 Sep 2008 09:22:00 -0000</pubDate></item><item><title>Re: Introducing ActivePresenter: The presenter library you already know.</title><link>/2008/7/27/introducing-activepresenter-the-presenter-library-you-already-know.html#comment-7962856</link><description>&lt;p&gt;Hi, I've been using it and works really nice. Any plans to include a before_validation callback?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Max</dc:creator><pubDate>Thu, 18 Sep 2008 15:24:00 -0000</pubDate></item><item><title>Re: Introducing ActivePresenter: The presenter library you already know.</title><link>/2008/7/27/introducing-activepresenter-the-presenter-library-you-already-know.html#comment-7962843</link><description>&lt;p&gt;@Nate, have you tried something like this:&lt;/p&gt;&lt;p&gt;:url =&amp;gt; { :controller =&amp;gt; 'accounts', :action =&amp;gt; :create }&lt;/p&gt;&lt;p&gt;I haven't tried active_presenter yet, but it does seem intriguing.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mark A. Richman</dc:creator><pubDate>Fri, 12 Sep 2008 16:53:00 -0000</pubDate></item><item><title>Re: Introducing ActivePresenter: The presenter library you already know.</title><link>/2008/7/27/introducing-activepresenter-the-presenter-library-you-already-know.html#comment-7962838</link><description>&lt;p&gt;Awesome stuff.  I do have a question though.  After installing the plugin and then trying to run rake routes I get an error: uninitialized constant ActivePresenter.&lt;/p&gt;&lt;p&gt;I installed from Github as a plugin.  Also, when using the presenter to create a user and an account I'm getting some weird posting issues.&lt;/p&gt;&lt;p&gt;so my AccountSignupPresenter presents :account, :user&lt;/p&gt;&lt;p&gt;then on my form I have this: form_for @account_signup_presenter, :url =&amp;gt; accounts_path&lt;/p&gt;&lt;p&gt;for some reason everything looks great and works, but the form is posting to the accounts index action.  It obviously should post to the accounts create action.&lt;/p&gt;&lt;p&gt;Any help would be appreciated.  Thanks again for the great work!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nate</dc:creator><pubDate>Tue, 09 Sep 2008 16:45:00 -0000</pubDate></item><item><title>Re: Introducing ActivePresenter: The presenter library you already know.</title><link>/2008/7/27/introducing-activepresenter-the-presenter-library-you-already-know.html#comment-7962815</link><description>&lt;p&gt;This looks great for multiple unrelated models or two models with a belongs_to relationship, but doesn't handle has_many scenarios, correct?&lt;/p&gt;&lt;p&gt;&amp;lt;rant&amp;gt;&lt;br&gt;Why are multi-model forms so fraking hard (no standard solution, gotta write extra code, little documentation on the solutions that exists) in Rails when WebObjects was doing this 10 years ago with keypaths?&lt;br&gt;&amp;lt;/rant&amp;gt;&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rob</dc:creator><pubDate>Fri, 29 Aug 2008 18:53:00 -0000</pubDate></item><item><title>Re: Introducing ActivePresenter: The presenter library you already know.</title><link>/2008/7/27/introducing-activepresenter-the-presenter-library-you-already-know.html#comment-7962794</link><description>&lt;p&gt;Thanks! It looks good. But what if there are equal attribute names? Like &lt;a href="http://User.name" rel="nofollow noopener" target="_blank" title="User.name"&gt;User.name&lt;/a&gt; and &lt;a href="http://Account.name" rel="nofollow noopener" target="_blank" title="Account.name"&gt;Account.name&lt;/a&gt;. What form will be in this case?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michail</dc:creator><pubDate>Wed, 20 Aug 2008 07:22:00 -0000</pubDate></item><item><title>Re: Introducing ActivePresenter: The presenter library you already know.</title><link>/2008/7/27/introducing-activepresenter-the-presenter-library-you-already-know.html#comment-7962776</link><description>&lt;p&gt;This looks much nicer than the presenter plugin I slapped together, thanks.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Geoff Garside</dc:creator><pubDate>Wed, 06 Aug 2008 13:19:00 -0000</pubDate></item><item><title>Re: Introducing ActivePresenter: The presenter library you already know.</title><link>/2008/7/27/introducing-activepresenter-the-presenter-library-you-already-know.html#comment-7962701</link><description>&lt;p&gt;@John - No idea. I can run it ok. You're trying to download it from rubyforge?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Golick</dc:creator><pubDate>Tue, 29 Jul 2008 18:24:00 -0000</pubDate></item><item><title>Re: Introducing ActivePresenter: The presenter library you already know.</title><link>/2008/7/27/introducing-activepresenter-the-presenter-library-you-already-know.html#comment-7962700</link><description>&lt;p&gt;Hiya, I can't seem to grab this gem. I'm getting not found errors when I run the gem install command. Thoughts?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Corrigan</dc:creator><pubDate>Tue, 29 Jul 2008 17:30:00 -0000</pubDate></item><item><title>Re: Introducing ActivePresenter: The presenter library you already know.</title><link>/2008/7/27/introducing-activepresenter-the-presenter-library-you-already-know.html#comment-7962699</link><description>&lt;p&gt;Hi James,&lt;/p&gt;&lt;p&gt;Nice article.&lt;/p&gt;&lt;p&gt;We met in Berlin last year. I need to send you an email. Can you email me to the address included in this form?&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Swami Atma</dc:creator><pubDate>Tue, 29 Jul 2008 10:55:00 -0000</pubDate></item><item><title>Re: Introducing ActivePresenter: The presenter library you already know.</title><link>/2008/7/27/introducing-activepresenter-the-presenter-library-you-already-know.html#comment-7962698</link><description>&lt;p&gt;@Mathijs: It doesn't yet, but we're hoping to have that functionality going soon.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Golick</dc:creator><pubDate>Mon, 28 Jul 2008 21:19:00 -0000</pubDate></item><item><title>Re: Introducing ActivePresenter: The presenter library you already know.</title><link>/2008/7/27/introducing-activepresenter-the-presenter-library-you-already-know.html#comment-7962696</link><description>&lt;p&gt;Will this gem also handle cases where I want to create/edit a single model with some 'child' models?&lt;/p&gt;&lt;p&gt;So one project with (to leave javascript out of the equation) 10 tasks in a single form for creating and updating the tasks?&lt;br&gt;What about deleting them?&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mathijs Kwik</dc:creator><pubDate>Mon, 28 Jul 2008 19:05:00 -0000</pubDate></item><item><title>Re: Introducing ActivePresenter: The presenter library you already know.</title><link>/2008/7/27/introducing-activepresenter-the-presenter-library-you-already-know.html#comment-7962695</link><description>&lt;p&gt;@Eric Anderson: If you can avoid multi-object creation, then more power to you. This is indeed only for rare cases - although I think you confuse things by calling it a mixin. Check out the link macournoyer to get a better sense of what this encapsulates.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Haran</dc:creator><pubDate>Mon, 28 Jul 2008 11:17:00 -0000</pubDate></item><item><title>Re: Introducing ActivePresenter: The presenter library you already know.</title><link>/2008/7/27/introducing-activepresenter-the-presenter-library-you-already-know.html#comment-7962693</link><description>&lt;p&gt;hey James, great work!&lt;/p&gt;&lt;p&gt;I led a BOF session at Railsconf 2008 on this topic, and there's definitely a big interest and need for this gem.  In fact I registered "active_presenter" on RubyForge, but never got around to doing anything with it, so if you want to publish this gem there, I'd be glad to transfer the project to you.  Just hit me up with an email at mike /-at-/ &lt;a href="http://subelsky.com" rel="nofollow noopener" target="_blank" title="subelsky.com"&gt;subelsky.com&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;-Mike&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mike Subelsky</dc:creator><pubDate>Mon, 28 Jul 2008 10:57:00 -0000</pubDate></item><item><title>Re: Introducing ActivePresenter: The presenter library you already know.</title><link>/2008/7/27/introducing-activepresenter-the-presenter-library-you-already-know.html#comment-7962692</link><description>&lt;p&gt;awesome work James &amp;amp; Daniel!&lt;/p&gt;&lt;p&gt;@Eric, this is an implementation of the Presenter design pattern: &lt;a href="http://blog.jayfields.com/2007/03/rails-presenter-pattern.html" rel="nofollow noopener" target="_blank" title="http://blog.jayfields.com/2007/03/rails-presenter-pattern.html"&gt;http://blog.jayfields.com/2...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">macournoyer</dc:creator><pubDate>Mon, 28 Jul 2008 10:23:00 -0000</pubDate></item><item><title>Re: Introducing ActivePresenter: The presenter library you already know.</title><link>/2008/7/27/introducing-activepresenter-the-presenter-library-you-already-know.html#comment-7962688</link><description>&lt;p&gt;This is simply brilliant!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Piotr Usewicz</dc:creator><pubDate>Mon, 28 Jul 2008 06:01:00 -0000</pubDate></item><item><title>Re: Introducing ActivePresenter: The presenter library you already know.</title><link>/2008/7/27/introducing-activepresenter-the-presenter-library-you-already-know.html#comment-7962686</link><description>&lt;p&gt;Wow! Very nice. Congratulations once more!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lucas Hungaro</dc:creator><pubDate>Sun, 27 Jul 2008 21:28:00 -0000</pubDate></item></channel></rss>