Forum: Ruby on Rails form_for scope issue

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Feurio (Guest)
on 2006-06-02 16:54
Hi,

I am just ran into the problem that I cannot access helper methods from
within a form_for scope.

I do have something like the following:

<% form_for :potential_buyer, @potential_buyer, :url => { :action =>
"register" } do |f| %>
  <%= render(:partial => 'register_form', :locals => { :f => f } ) %>
<% end %>

-----

I cannot access view helper methods from within the form_for scope and
from within   the partial.

I can use the view helper methods from outside the form_for scope.

How can I use my view helper methods from within the form_for scope and
from within the partial?

Cheers,

Feurio
Feurio (Guest)
on 2006-06-02 17:00
Shame on me, it was just a typo.
Everything works.

Feurio
This topic is locked and can not be replied to.