Nachtrag: Wie jetzt aber mit cache_classes zusammenhängt, weiß ich
beim besten Willen nicht. Keine Ahnung. Planlos. Schaut Euch das an:
# wir starten die Console mit einer blanken Applikation ohne Routen
und machen die dann von Hand.
# config.cache_classes steht auf false.
>> ActionController::Routing::Routes.draw do |map|
?> map.resources :termine
>> end
=> [ActionController::Base, ActionView::Base]
# hier funktioniert's:
>> helper.termine_path
=> "/termine"
>> helper.termin_path(4)
=> "/termine/4"
# jetzt die cache_classes auf true setzen:
>> Rails::Initializer.run do |config|
?> config.cache_classes = true
>> end
# umd BAM!:
>> Rails::Initializer.run do |config|
?> config.cache_classes = true
>> end
=> #<Rails::Initializer:0x3421208 @configuration=#<Rails::Config...
>> helper.termine_path
NoMethodError: undefined method `termine_path' for
#<ActionController::Integration::Session:0x3463e28>
...
>> helper.termin_path(4)
NoMethodError: undefined method `termin_path' for
#<ActionController::Integration::Session:0x3463e28>
...
Bitte erklär mir das jemand!?
Grüße, Niko.
--
___________________________________
niko dittmann
gottfr.-keller-str. 36
78467 konstanz
GERMANY
mail: [EMAIL PROTECTED]
fon: +49 7531 959531
fax: +49 1212 512 852 148
aim: ende42
___________________________________
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug