Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Database > Administrative frontents

    Ruby on Rails SubList Plugin 0.1

    Download button

    No screenshots available
    Downloads: 510  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Luke Galea | More programs
    GPL / FREE
    July 7th, 2006, 17:54 GMT
    ROOT / Database / Administrative frontents

     Read user reviews (0)  Refer to a friend  Subscribe

    Ruby on Rails SubList Plugin description

    Ruby on Rails SubList Plugin makes it easy to have dynamic lists of related models on a single editing page.

    Ruby on Rails SubList Plugin makes it easy to have dynamic lists of related models on a single editing page.

    The plugin is designed for models with one or more has_many relationship with other models.

    By using AJAX for adding and removing "sub-forms" one can present the user with a single edit page that creates/edits the parent model as well as all of the children.

    Usage:

    Place the sub_list directory in the vendor/plugins dir of your application.

    In the controller which you wish to have a sub list displayed, add the following lines:

    include UIEnhancements::SubList
    helper :SubList

    sub_list 'SubModel', 'parent' do |new_research_student|
    #Place any construction (ie. defaults) required here
    end

    Replace 'SubModel' with the class name of the sub model you wish to make available.

    Replace 'parent' with the parent object.

    For instance, if you wish to have a Person controller that has a sub list of Dogs for each person, the sub model would be 'Dog' and the parent would be 'person'. It is expected that @person would exist and that it contains a has_many relationship named 'dogs'.

    Product's homepage

      


    TAGS:

    SubList plugin | Ruby on Rails | Rails development | Ruby | Rails | SubList

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM