开发者

Scaffolding Extensions: NoMethodError

开发者 https://www.devze.com 2023-01-02 14:32 出处:网络
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.

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

精彩评论

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

关注公众号