RubyGems Navigation menu

Fingertips-as_new-san 0.2

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:
= Copier Copié!

installation:
=

Versions:

  1. 0.2 - August 11, 2014 (8 ko)
  2. 0.1.1 - August 11, 2014 (7,5 ko)
  3. 0.1.0 - August 11, 2014 (6,5 ko)

Auteurs:

  • Eloy Duran

Total de contrôle SHA 256:

468d925510c66cb199d6189ccc03b51d276289a6d71d39bf38b96adc0534a22c

Total de téléchargements 8 669

Pour cette version 3 532

License:

aucune

Version de Ruby requise: >= 0

Liens: