Thanks for sharing Ed :)
Best regards, Ibon.
Abrazo, Ibon.
Usa Software Libre, tus úlceras te lo agradecerán
Realizado con Software Libre.
--
GPG public key at
http://sinanimodelucro.net/ibon_gmail.asc
Finderprint: 1761 59B9 6DE6 0402 31B9 1872 178F A6FD 75F9 EB29
El 22/11/16 a las 06:22, Ed Gomolka escribió:
> I resolved this. I don't know if the solution will be of use to anyone,
> but here it is, for what it's worth:
>
> *Problem 1:*
> "If the user makes the input_one selection, and then decides to
> re-select for input_one, the change isn't picked up immediately by the
> input_two selection list. I need to select input_one a third time, and
> then the input_two selection list reflects my second input_one
> selection. In other words, I have a lag."
>
> This was the result of some bad controller logic in my code. I have
> logic that allows the user to navigate to another page to create a new
> object that can be used on the original page. The user is automatically
> returned when the object is created, and any information that they
> entered previously on the original page is used to re-populate the page.
> The page re-population logic should have only been triggered upon
> returning from a specific page, but it was mistakenly being triggered
> after a validation failure, which led to some very odd behavior. I added
> an extra check in the controller logic to ensure that the page isn't
> being repopulated with saved data when the referring page is the current
> page.
>
> *Problem 2:*
> 1. If the user makes the input_one selection, and then decides to
> re-select for input_one, the change isn't picked up immediately
> by the input_two selection list. I need to select input_one a
> third time, and then the input_two selection list reflects my
> second input_one selection. In other words, I have a lag.
> 2. If I avoid entering any fields at all and simply hit the create
> button at the bottom of the page, the field validations that I
> have in the model prevent the object from being saved (just as
> intended), but the page stops functioning. I can still select
> input_one, but the input_two selection no longer adjusts to
> reflect the input_one selection. The log file shows
> "NoMethodError (undefined method `input_one' for
> #<InputTest::ActiveRecord_Relation:0x404c140e>)".
>
> Any help would be appreciated.
>
>
> Thx,
>
> Ed
>
> --
> You received this message because you are subscribed to the Google
> Groups "Hobo Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
hobousers+...@googlegroups.com
> <mailto:
hobousers+...@googlegroups.com>.
> To post to this group, send email to
hobo...@googlegroups.com
> <mailto:
hobo...@googlegroups.com>.
> Visit this group at
https://groups.google.com/group/hobousers.
> For more options, visit
https://groups.google.com/d/optout.