Form_for scope issue


#1

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


#2

Shame on me, it was just a typo.
Everything works.

Feurio