开发者

Scaffolding Extensions: NoMethodError

Not sure if many people are familiar with Scaffolding Extensions for Ruby, but I've looked through their docs, forums, and even the source code of the Heroku test site, and not found an answer.

I made a basic Sinatra app and followed right from the RDoc's instructions:

require 'scaffolding_extensions'
require 'sinatra/base'
class Thingy < Sinatra::Base
  scaffold_all_models
end

gives

undefined method 'scaffold_all_models' fo开发者_如何学Cr Thingy:Class (NoMethodError)

and I know Scaffolding Extensions is loadable because I can successfully set some config variables in its classes.


This works for me:

require 'sinatra/base'
require 'scaffolding_extensions'

class Thingy < Sinatra::Base
  scaffold_all_models
end
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜