[Rails] Re: Dropdown List

2015-09-02 Thread Milley Duke
that value in the dropdown list anymore. Is there any way that i can see the value in dropdown list irrespective of how many times i have selected the value. Also,please find attached screenshot. Thanks, Milley Colin Law wrote in post #1178473: > On 2 September 2015 at 12:21, Milley Duk

[Rails] Dropdown List

2015-09-02 Thread Milley Duke
Hi, When I am selecting a particular value from DropDown(values are being populated from DB), is it possible to show the same value in dropdown. Currently,when i am selecting any value from the dropdown the selected value is no longer visible in the dropdown list. Need a help as i have to

[Rails] Re: Re: Re: Dropdown List

2015-09-02 Thread Milley Duke
Hi Colin, Its happening through javascript. Colin Law wrote in post #1178483: > On 2 September 2015 at 14:02, Milley Duke <li...@ruby-forum.com> wrote: >> Hi Colin, >> >> Thanks for the reply. By inspecting the element I am able to see the >> value in dropdow

[Rails] Re: Re: Re: Re: Dropdown List

2015-09-02 Thread Milley Duke
Hi Colin, By disabling javascript, the drop down is not working properly. Thanks, Ekta Colin Law wrote in post #1178488: > On 2 September 2015 at 14:26, Milley Duke <li...@ruby-forum.com> wrote: >> Hi Colin, >> >> Its happening through javascript. > > In t

[Rails] Re: Re: Re: Dropdown List

2015-09-02 Thread Milley Duke
Hi Colin, We are using select2.js jquery plugin. Thanks, Milley Milley Duke wrote in post #1178484: > Hi Colin, > > Its happening through javascript. > > Colin Law wrote in post #1178483: >> On 2 September 2015 at 14:02, Milley Duke <li...@ruby-forum.com> wrote: &

[Rails] Re: Re: Re: Re: Re: Dropdown List

2015-09-02 Thread Milley Duke
Colin Law wrote in post #1178491: > On 2 September 2015 at 14:32, Milley Duke <li...@ruby-forum.com> wrote: >> Hi Colin, >> >> By disabling javascript, the drop down is not working properly. > > What do you mean, not working properly? > > By the way, it

[Rails] Re: Re: Dropdown List

2015-09-02 Thread Milley Duke
was previously being selected that basically allows me to select value. Thanks, Milley Colin Law wrote in post #1178481: > On 2 September 2015 at 12:39, Milley Duke <li...@ruby-forum.com> wrote: >> >> Is there any way that i can see the value in dropdown list irrespective >&g

[Rails] Re: Re: Re: Re: Re: Re: Dropdown List

2015-09-02 Thread Milley Duke
Colin Law wrote in post #1178493: > On 2 September 2015 at 14:45, Milley Duke <li...@ruby-forum.com> wrote: >>> This is a mailing list not a forum, though you may be accessing it via >>> a forum-like interface. Thanks. >>> >>> Colin >> >>

[Rails] Update column value

2015-08-24 Thread Milley Duke
Hi, Is there any way that I can Update column value of another table when saving form data of another model. For example: I have two models model A and model B. Both of them have one to many relation with each other. On filling data in form fields of model B , when particular condition met, i

[Rails] Insert data into multiple tables

2015-08-21 Thread Milley Duke
Hi, Is there any way to insert data when form is saved into another table. Say for example: I have membership table which already contains some data and have column names as 'no_of_users_added', 'no_of_users_left'. I want to insert data from user table based on the count value how many users