El Wednesday 17 December 2008 02:36:53 sanjayayogi escribió:
> EDITING EXISTING ASSIGNMENTS WORK - ONLY CREATING NEW ONES DO NOT
> WORK??

Please, don't post in upcase, it's tirer to read

>
> sanjayayogi wrote:
> > http://github.com/sanjayayogi/m2m_test/tree/master
> >
> > 1. FIX PROBLEM WITH ASSIGNMENT - SELECT NEW - OPENS FRAME WITH
> > PROBLEM:
> > WHEN THE DROP DOWN LISTS ARE SELECTED AND THE ADD EXISTING BUTTON IS
> > CLICKED NOTHING HAPPENS.
> > (SAME PROBLEM WITH BOTH ExistingProgrammers and ExistingProjects)
> >
> > My select box is not retrieving the proper id to add.
> >
> > IT SEEMS TO WORK IF I USE IT TO CREATE NEW PROGRAMMERS AND PROJECTS -
> > DOES NOT WORK IT I AM TRYING TO CREATE A JOIN WITH EXISTING
> > PROGRAMMERS AND EXISTING PROJECTS - HELP ANY ONE?
> > _________________________________________________________________________
> >________________________________ Create Assignment(LABEL)
> >
> >    1.
> >       Programmer (HIDE)
> >       First name(LABEL)               Last name(LABEL)
> >       [Data Entry(TEXT BOX)]      [Data Entry(TEXT BOX)]
> >
> >       [Replace with New(BUTTON)] [select(DROPDOWNLIST-
> > ExistingProgrammers)] [Add Existing(BUTTON)]
> >
> >             Remove
> >
> >    2.
> >       Project (hide)
> >       Project name
> >       [Data Entry(TEXT BOX)]
> >
> >       [Replace with New(BUTTON)]   [select(DROPDOWNLIST-
> > ExistingProjects)]     [Add Existing(BUTTON)]
> >
> >       [Create(BUTTON)]      [Cancel]
> > _________________________________________________________________________
> >___________________
> >
> > Processing AssignmentsController#new (for 127.0.0.1 at 2008-12-16
> > 23:14:13) [GET]
> >   Parameters: {"adapter"=>"_list_inline_adapter"}
> >   Programmer Columns (0.8ms)   SHOW FIELDS FROM `programmers`
> >   Project Columns (0.8ms)   SHOW FIELDS FROM `projects`
> > Rendered _form_association_header (1.7ms)
> > Rendered _form_attribute (0.8ms)
> > Rendered _form_attribute (0.7ms)
> > Rendered _form_association_record (7.4ms)
> >   SQL (0.1ms)   SELECT count(*) AS count_all FROM `programmers`
> >   Programmer Load (0.1ms)   SELECT * FROM `programmers`
> > Rendered _form_association_footer (5.8ms)
> > Rendered _horizontal_subform (23.9ms)
> > Rendered _form_association (28.7ms)
> > Rendered _form_association_header (1.3ms)
> > Rendered _form_attribute (0.8ms)
> > Rendered _form_association_record (3.3ms)
> >   SQL (0.1ms)   SELECT count(*) AS count_all FROM `projects`
> >   Project Load (0.1ms)   SELECT * FROM `projects`
> > Rendered _form_association_footer (4.3ms)
> > Rendered _horizontal_subform (10.5ms)
> > Rendered _form_association (12.8ms)
> > Rendered _form (49.5ms)
> > Rendered _create_form (56.6ms)
> > Rendering _list_inline_adapter
> > Rendered _messages (0.4ms)
> > Rendered _list_inline_adapter (4.0ms)
> > Completed in 136ms (View: 4, DB: 0) | 200 OK [http://localhost/
> > assignments/new?_method=get&adapter=_list_inline_adapter]
> >
> > Processing AssignmentsController#show (for 127.0.0.1 at 2008-12-16
> > 23:17:19) [GET]
> >   Parameters: {"association"=>"programmer", "id"=>"edit_associated",
> > "associated_id"=>"1"}
> >   Programmer Columns (0.9ms)   SHOW FIELDS FROM `programmers`
> >   Project Columns (0.8ms)   SHOW FIELDS FROM `projects`
> >   Assignment Load (0.2ms)   SELECT * FROM `assignments` WHERE
> > (`assignments`.`id` = 0)
> >
> >
> > ActiveRecord::RecordNotFound (Couldn't find Assignment with
> > ID=edit_associated):
> >     /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/
> > base.rb:1528:in `find_one'
> >     /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/
> > base.rb:1511:in `find_from_ids'
> >     /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/
> > base.rb:590:in `find'
> >     /vendor/plugins/active_scaffold/lib/active_scaffold/finder.rb:
> > 125:in `find_if_allowed'
> >     /vendor/plugins/active_scaffold/lib/active_scaffold/actions/
> > show.rb:25:in `do_show'
> >     /vendor/plugins/active_scaffold/lib/active_scaffold/actions/
> > show.rb:8:in `show'
>
> 


-- 
Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

  • Ma... sanjayayogi
    • ... sanjayayogi
      • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
        • ... nicolae.claudius
          • ... sanjayayogi
            • ... sanjayayogi

Reply via email to