rails 4 + ruby 2.0
rails 4是否支持active_scaffold?
按来源:https://github.com/activescaffold/active_scaffold
概述
“ActiveScaffold为Rails应用程序的CRUD(创建,读取,更新,删除)操作提供了快速而强大的用户界面。它提供了额外的功能,包括搜索,分页和布局控制。 Rails 3.2和4 得到支持。“
当我尝试使用全新的rails项目时。
1)gem'active_scaffold'
2)捆绑安装
3)捆绑exec rake db:create
此版本的ActiveScaffold需要Rails 3.1或更高版本。请使用早期版本。
/home/xyz/.rvm/gems/ruby-2.0.0-p247@rails4/gems/active_scaffold-3.2.20/xyz/active_scaffold.rb:2:in <top (required)>'
/home/xyz/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in
require'
/home/xyz/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in block (2 levels) in require'
/home/xyz/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in
每个'
/home/xyz/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in block in require'
/home/xyz/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in
每个'
/home/xyz/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in require'
/home/xyz/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler.rb:132:in
require'
/home/xyz/RoRProjects/active_scaff/config/application.rb:7:in <top (required)>'
/home/xyz/RoRProjects/active_scaff/Rakefile:4:in
require'
/ home / xyz / RoRProjects / active_scaff / Rakefile:4:in <top (required)>'
/home/xyz/.rvm/gems/ruby-2.0.0-p247@rails4/bin/ruby_noexec_wrapper:14:in
eval'
/home/xyz/.rvm/gems/ruby-2.0.0-p247@rails4/bin/ruby_noexec_wrapper:14:in`'
有什么建议吗?
答案 0 :(得分:1)
答案是肯定的! rails 4支持active_scaffold。
1)gem'active_scaffold',github:'activescaffold / active_scaffold'
2)捆绑安装
3)捆绑exec rake db:create
4)rails g active_scaffold用户名:string
5)捆绑exec rake db:migrate
完成!