make it more easy after http://www.cnblogs.com/juandx/p/4058399.html 1 if you want the selected is what you choose after you submit the form use javascripts, then you should do this selected: params[:option] in options_for_select(); 2 if you want…
In this lesson we will look at how we can setup our npm scripts to execute when the file system has changed. Some common examples of this are automatically linting your code, running unit tests, or using a pre-processor for your CSS. Install: npm i -…
最近rails3.2在更改数据库表字段,然后要回滚取消,但在运行rake db:rollback命令,错误: rake aborted! An error has occurred, all later migrations canceled: ActiveRecord::IrreversibleMigration/usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.14/lib/active_record/migration/com…