RubyGems Navigation menu

Fingertips-as_new-san 0.1.1

The AsNewSan mixin makes it easier to create associations on a new Active Record instance. Use the as_new method to instantiate new empty objects that are immediately saved to the database with a special flag marking them as new. Because new instances are already stored in the database, you always have an id available for creating associations. This means you can use the same views and controller logic for new and edit actions which is especially helpful when you are creating new associated objects using Ajax calls.

Gemfile:
= 複製 已複製

安裝:
=

版本列表:

  1. 0.2 - August 11, 2014 (8.0 KB)
  2. 0.1.1 - August 11, 2014 (7.5 KB)
  3. 0.1.0 - August 11, 2014 (6.5 KB)

作者:

  • Eloy Duran

SHA 256 checksum:

f9dda96d29e676550f8d62fa0e7c0bdbb3d916d83b3fa9182d63663a8c30d240

總下載次數 8,694

這個版本 2,569

License:

Ruby 版本需求: >= 0

相關連結: