[Rails] Re: Help with select boxes

2009-12-24 Thread Frederick Cheung
On Dec 24, 10:36 am, jerry opolots...@gmail.com wrote: Am trying to build a search form but i want different select boxes to have different widths.when i use the  select{ width:100%} in css it affects all select boxes in the application and when i try using css classes for instance

[Rails] Re: Help with Select

2009-08-31 Thread Quee Mm
Thanks guys for the pointers, am working on them to see if something comes up. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this

[Rails] Re: Help with Select

2009-08-29 Thread Quee Mm
Do I need to provide more information for someone to look into this and help me? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this

[Rails] Re: Help with Select

2009-08-29 Thread Hassan Schroeder
On Fri, Aug 28, 2009 at 11:28 PM, Quee Mmrails-mailing-l...@andreas-s.net wrote: Do I need to provide more information for someone to look into this and help me? more information? I didn't see *any* information -- where's the code you've tried that isn't producing the result you want? --

[Rails] Re: Help with Select

2009-08-29 Thread Quee Mm
man i have so many different combos but here is my latest code. In my view I have code %= f.select(:year_made, ((1980..Time.now.year).collect {|p| [ p, p ]}).reverse, {:prompt=Select a Year}) % %= f.select(:year_imported, ((1980..Time.now.year).collect {|p| [ p, p ]}).reverse, :prompt=Select a

[Rails] Re: Help with Select

2009-08-29 Thread Dhruva Sagar
Hey can you please use some service like pastie.org to paste the code and give us the link ? Reading this code gives me a headache ... Thanks Regards, Dhruva Sagar. Jonathan Swifthttp://www.brainyquote.com/quotes/authors/j/jonathan_swift.html - May you live every day of your life. On Sat, Aug

[Rails] Re: Help with Select

2009-08-29 Thread Quee Mm
Well this is my first time working with pastie and all so please bear with me. Here is the link to the pastie. http://pastie.org/private/uaaeocr2866tke49sg thanks for looking into this. Regards, Quee -- Posted via http://www.ruby-forum.com/.

[Rails] Re: Help with Select

2009-08-29 Thread Hassan Schroeder
On Sat, Aug 29, 2009 at 1:09 AM, Quee Mmrails-mailing-l...@andreas-s.net wrote: code %= f.select(:year_made, ((1980..Time.now.year).collect {|p| [ p, p ]}).reverse, {:prompt=Select a Year}) % %= f.select(:year_imported, ((1980..Time.now.year).collect {|p| [ p, p ]}).reverse, :prompt=Select

[Rails] Re: Help with Select

2009-08-29 Thread Quee Mm
The code works fine and does generate the three drop downs i think I am missing the point where I can tell the code what the already :selected value is. As i already said, when i do a new record, the code and the javascript work just fine and give me the results that i need, now the edit is a

[Rails] Re: Help with Select

2009-08-29 Thread Hassan Schroeder
On Sat, Aug 29, 2009 at 9:24 AM, Quee Mmrails-mailing-l...@andreas-s.net wrote: for that all i get is three drop downs with 1980 - 2009 as options in all three fields and it seems as if the javascript is not present. ..which usually indicates a JS error; are you using Firefox with

[Rails] Re: Help with Select

2009-08-29 Thread Dhruva Sagar
I would like to tell you one small thing. You don't need :selected in any of the val() calls. for a select box, the val() method is wise enough to return the selected value. Thanks Regards, Dhruva Sagar. Joan Crawfordhttp://www.brainyquote.com/quotes/authors/j/joan_crawford.html - I, Joan