re: Rails update時に値を変更して更新したい | そんなこと覚えてない
assign_attributesをつかう
before_update コールバックをつかう
rails 
5 days ago
« earlier      
activerecord ajax alfred algorithm android animation apache api app applescript arduino art atomio audio authenticate base64 bash bike book bootstrap braille bundler camera canvas capistrano cheatsheet chrome ci cli cloud cms coffeescript color command couchdb css css3 csv cucumber datamapper date db debug defaults deploy design development device devise diff docker docx domain dropbox earthquake editor education electron encoding epub error es6 eventmachine express extendscript extension flex font food form framework gem generator gif gist git gitbucket github gitlab glitch gmail golang google grunt guard gulp haml haskell heroku homebrew hook html html5 http hubot hugo i18n icon illustrator image imagemagick indesign instagram ios iphone irb irc java javascript jekyll jenkins jquery jruby json life log machine-learning map markdown math mecab middleman migration minitest module mongodb music mysql nodejs nokogiri notify npm oauth omniauth osx passenger pdf photoshop pinboard plugin postgresql pow processing programming pry python quicklook rack rails rake rbenv reactjs readline redis redmine reference regex responsive rmagick rspec rss rsync ruby rvm sass scala scriptui scss search security sequel shellscript sinatra spreadsheet sql sqlite3 ssh stationery streaming svg table template terminal test textmate textmate2 time titanium tmbundle tutorial twitter ui unicode usb validation video vuejs webdesign webfont webpack webservice websocket wiki wordpress xml yaml zip

Copy this bookmark:



description:


tags: