Gerold,
Thank you for such a succinct and simple answer.  I should have known
this,
but maybe I have betrayed my level of knowledge of Ruby on Rails.  You
have moved me forward by many miles.
Thanks again.


On Sep 2, 12:08 pm, Gerold Böhler <[EMAIL PROTECTED]> wrote:
> if you don't need to share the helpers among controllers you can just  
> put the code you have in the helper into the controller. the reason  
> that all your helpers are included is because you probably have this  
> line in your ApplicationController
>
> helper :all # include all helpers, all the time
>
> and most probably your controllers with the activescaffold inherit  
> from ApplicationController... you see where this is going :)
>
> if you need to share the helpers among controllers you can remove the  
> helper :all call from ApplicationController and add a specific call to  
> helper in each controller.
>
> On Sep 2, 2008, at 7:24 PM, cntrytwist wrote:
>
>
>
> > Bump
>
> > On Aug 26, 5:52 am, cntrytwist <[EMAIL PROTECTED]> wrote:
> >> I'm not sure if this is the right place for this question, but here
> >> goes.
>
> >> I've implemented ActiveScaffold in a couple of projects with awesome
> >> success.  I'm seeing in my logs some errors, and they relate to
> >> helpers.  It would appear that any method I place in a helper becomes
> >> available to any controller and any model.  I am using two embeded
> >> controllers, and I'm wondering if that is where this is coming from.
>
> >> Basically I have a controller for SalesProject which has an embedded
> >> Communication controller and an embedded Scenario controller.  I've
> >> used the SalesProject helper to make a select list for my
> >> next_action_by.  Whenever I edit a SalesProject, the following error
> >> is logged to the console:  "#<NoMethodError: undefined method
> >> 'next_action_by' for #<Scenario:0x2023b98>>
>
> >> Is there a way to prevent this from happening?
> >> Thank you for any help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to