A copy of ApplicationHelper has been removed

Cześć,
Nie mam pojecia dlaczego, ale gdy poraz drugi wchodzę na strone poprzez wpisanie url (strona zawiera formularz) dostaje błąd

[code] ArgumentError in Child#book_edit

Showing app/views/child/book_edit.rhtml where line #11 raised:

A copy of ApplicationHelper has been removed from the module tree but is still active!

Extracted source (around line #11):

8:
9: <%= big_frame_top %>
10: <% form_for :book, :html => {:multipart => true} do |form| %>
11: <%= get_book_page_templ_formated_html( @book_page_template, form, @child.book ) %>
12: <%= submit_tag ‘Zapisz’, :class => “submit” %>
13: <% end %>
14:

RAILS_ROOT: ./script/…/config/…
Application Trace | Framework Trace | Full Trace

c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:237:in load_missing_constant' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:452:inconst_missing’
C:/Documents and Settings/kku/My Documents/Aptana Studio/mpr/app/helpers/application_helper.rb:134:in get_book_page_templ_formated_html' C:/Documents and Settings/kku/My Documents/Aptana Studio/mpr/app/views/child/book_edit.rhtml:11:in_run_rhtml_47app47views47child47book_edit46rhtml’
C:/Documents and Settings/kku/My Documents/Aptana Studio/mpr/app/views/child/book_edit.rhtml:10:in _run_rhtml_47app47views47child47book_edit46rhtml' -e:2:inload’
-e:2[/code]
za nic nie mogę dojść do tego o co chodzi, znalazlem na sieci zeby ustawić

config.load_paths += %W{ #{RAILS_ROOT}/app/controllers} config.load_once_paths += %W{ #{RAILS_ROOT}/app/controllers }
ale nic nie pomaga, tak samo dla helpers…

Ma ktoś jakiś pomysł,
z góry dzieki za pomoc
Krzysiek

Udało się rozwiązać problem, ale nadal nie rozumiem dlaczego tak się działo, wiec jak ktoś wie to proszę o wytłumaczenie :slight_smile:

[code]# pic_url = url_for(:controller => “family_photo”,

:action => “show”,

:id => FamilyPhoto.find(@book.father_photo_id).hash_name )

  pic_url = url_for(:controller => "family_photo",
                   :action => "show",
                   :id => @book.father_photo_hash_name )[/code]

czyli przeniesienie FamilyPhoto.find z helpera do modelu pomogło ale dlaczego :slight_smile:
pozdrawiam
Krzysiek