Re: [Rails] how do you manually specify the name of a submit button?

2010-03-17 Thread Gordon Yeong
bravo. another brilliant reply On 17 March 2010 20:12, Colin Law wrote: > On 17 March 2010 03:54, Gordon Yeong wrote: > > Thanks craig but my mistake, guys. > > > > I meant the "id" attribute. > > > > Hence, we'll get two submit buttons: > > > > > > (first form) > > > > > > > > (second f

Re: [Rails] how do you manually specify the name of a submit button?

2010-03-17 Thread Colin Law
On 17 March 2010 03:54, Gordon Yeong wrote: > Thanks craig but my mistake, guys. > > I meant the "id" attribute. > > Hence, we'll get two submit buttons: > > > (first form) > > > > (second form) I can confirm that <%= f.submit "Search", :id => "a_search" %> <%= f.submit "Search", :id => "an

Re: [Rails] how do you manually specify the name of a submit button?

2010-03-16 Thread Craig White
On Wed, 2010-03-17 at 14:54 +1100, Gordon Yeong wrote: > Thanks craig but my mistake, guys. > > I meant the "id" attribute. > > Hence, we'll get two submit buttons: > > > (first form) > > > > (second form) > > > > > > > On 17 March 2010 14:51, Craig White wrote: > >

Re: [Rails] how do you manually specify the name of a submit button?

2010-03-16 Thread Gordon Yeong
Thanks craig but my mistake, guys. I meant the "id" attribute. Hence, we'll get two submit buttons: (first form) (second form) On 17 March 2010 14:51, Craig White wrote: > On Tue, 2010-03-16 at 20:44 -0700, ct9a wrote: > > hi, guys, > > > > I have an app which has two forms on the

Re: [Rails] how do you manually specify the name of a submit button?

2010-03-16 Thread Craig White
On Tue, 2010-03-16 at 20:44 -0700, ct9a wrote: > hi, guys, > > I have an app which has two forms on the page. > > Both forms are based on a "search" model. > 1) Search by keyword only (hence, only 1 element being "keyword") > 2) Search by a few different attributes (including keyword). > Attrib

[Rails] how do you manually specify the name of a submit button?

2010-03-16 Thread ct9a
hi, guys, I have an app which has two forms on the page. Both forms are based on a "search" model. 1) Search by keyword only (hence, only 1 element being "keyword") 2) Search by a few different attributes (including keyword). Attributes are such as price, brand and make. When constructing a se