search for: mymodelcontrol

Displaying 1 result from an estimated 1 matches for "mymodelcontrol".

2005 Apr 24
2
Model names in controllers
...;'m getting this error: MissingSourceFile in <controller not set>#<action not set> c:/program files/ruby/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/dependencies.rb:75:in `require_dependencies'': Missing model MyModel.rb From these lines of code: class MyModelController < ApplicationController model :MyModel end The model''s file name is my_model.rb. If I rename the file to MyModel.rb it works, or if I change the line of code to model :my_model it works. I used the generator for the model so it seems that the file name should follow rails conve...