rails 4+ruby 2.0
rails 4是否支持active_scaffold?
按来源:https://github.com/activescaffold/active_scaffold
概述
"ActiveScaffold为Rails应用程序的CRUD(创建、读取、更新、删除)操作提供了快速而强大的用户界面。它提供了包括搜索、分页和布局控制在内的附加功能。支持Rails 3.2和4。">
当我尝试一个全新的铁轨项目时。
1) gem"active_scaffold">
2) 捆绑安装
3) bundle exec rake db:创建
错误
此版本的ActiveScaffold需要Rails 3.1或更高版本。请使用早期版本。
/主页/xyz/.rvm/gems/ruby-2.0.0-p247@rails4/gems/active_scaffeld-3.2.20/xyz/active_scafford.rb:2:在<top (required)>'
/home/xyz/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in
中需要'/主页/xyz/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:inblock (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
each'/主页/xyz/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:inblock in require'
/home/xyz/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in
each'/主页/xyz/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:在require'
/home/xyz/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler.rb:132:in
中需要'/home/xyz/RoRProjects/active_scaf/config/application.rb:7:在<top (required)>'
/home/xyz/RoRProjects/active_scaff/Rakefile:4:in
中需要'/home/xyz/RoRProjects/active_scaf/Rakefile:4:在<top (required)>'
/home/xyz/.rvm/gems/ruby-2.0.0-p247@rails4/bin/ruby_noexec_wrapper:14:in
eval'中/主页/xyz/.rvm/gems/ruby-2.0.0-p247@rails4/bin/ruby_noexec_wrapper:14:在`'中
有什么建议吗?
答案是肯定的!rails 4支持active_scaffold。
1) gem"active_scaffold",github:"activescaffold/active_scaffold">
2) 捆绑安装
3) bundle exec rake db:创建
4) rails g active_scaffold用户名:字符串
5) bundle exec rake db:迁移
完成!