HILFE!

Bin völlig genervt und am Ende! Lokal funktioniert alles einwandfrei, auf dem Server meckert mich Rails an, weil die Path- Helper nicht funktionieren. Rails und Ruby sind je in der gleichen Version installiert (1.2.3 und 1.8.5).

In meiner routes.rb steht:

map.resources :termine

In meiner environment.rb;

Inflector.inflections do |inflect|
  inflect.irregular 'termin', 'termine'
end

und das hier krieg ich zu hören, wenn ich versuche, die Seiten auf dem Server zu laden:

undefined method `edit_termin_path'

oder auch:

undefined local variable or method `new_termin_path'

oder:

ActionView::TemplateError (termine_url failed to generate from {:controller=>"termine", :action=>"show"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["termine", :id] - are they all satisifed?) on line #5 of app/views/ termine/new.rhtml:
2:
3: <%= error_messages_for :termin %>
4:
5: <% form_for(:termin, :url => termine_path) do |f| %>
6:   <%= render :partial => "termin_form", :locals=>{:f=>f} %>
7: <% end %>
8:

Stinkt irgendwie nach inflections! Ich bin mir sicher, dass die Lösung vollkommen banal ist, sehe aber den Wald vor lauter Bäumen nicht. Vor allem, dass es lokal funktioniert und auf dem Server nicht irritiert mich. An der environments/production.rb liegt's auch nicht, die habe ich schon durch die development.rb ersetzt.


Wäre sehr für einen Tipp dankbar, 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

Antwort per Email an