Bugs: Browse | Submit New | Admin
This function uses the following to determine class-names: File.basename(filename).chomp(".rb").camelize However, if your models are in sub-directories e.g. app/models/foo/bar.rb .. the returned "class" will be "Bar" not "Foo::Bar" Use the following instead: filename.sub(/^#{File.join('app','models',"")}/,"").chomp(".rb").camelize - paul.belt
Add A Comment:
Date: 2009-05-15 11:12 Sender: Peter Hoeg I have released a new version that fixes this: http://wiki.github.com/peterhoeg/RailRoad