The postdate datetime field was left blank on the "new" active creation page because orbit_form_helper.rb intentionally clears :new_record fields regardless of the model's :default value. Add inline JS (mirroring the pattern used in announcement-test) to fill act[postdate] with the current date/time only when the URL path ends in "new", so existing records are not overwritten on edit. |
||
|---|---|---|
| app | ||
| bin | ||
| config | ||
| lib | ||
| modules/active | ||
| test | ||
| .gitignore | ||
| Gemfile | ||
| Gemfile.lock | ||
| MIT-LICENSE | ||
| README.rdoc | ||
| Rakefile | ||
| active.gemspec | ||
README.rdoc
= Active This project rocks and uses MIT-LICENSE.