That''s by design. You should really have a partial that gets rendered
from
your controller. The partial would contain the link_to_remote.
On 9/12/06, Ben Winekur
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
>
> I can''t seem to use ActionView::Helpers::PrototypeHelpers from a
> controller - specifically, I''m trying to use the link_to_remote
helper
> to create an Ajax link from within a controller function called from a
> previous link_to_remote call.
>
> The error is:
> undefined method `link_to_remote'' for
#<MatchController:0x35e3370>
>
>
> If I try to import the PrototypeHelpers module, instead I get:
> undefined method `options_for_javascript'' for
> #<MatchController:0x35f94f4>
>
> Any thoughts?
>
> Thanks,
> ben
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---