[Rails] Re: Newbie - submit_tag with link?

2010-10-03 Thread Anders_P
Thanks it worked. On 3 Okt, 18:31, Walter Lee Davis wrote: > Here's a page that explains how to do this using JavaScript within the   > form builder syntax. > > http://www.folksonomy.org/2008/12/22/rails-auto-clearing-input-field/ > > Note that any element like this will rely on JavaScript on the

Re: [Rails] Re: Newbie - submit_tag with link?

2010-10-03 Thread Walter Lee Davis
Here's a page that explains how to do this using JavaScript within the form builder syntax. http://www.folksonomy.org/2008/12/22/rails-auto-clearing-input-field/ Note that any element like this will rely on JavaScript on the client to keep from submitting the default value. Be sure to check

[Rails] Re: Newbie - submit_tag with link?

2010-10-03 Thread Anders_P
Thanks a lot! That worked. Do you have any tips on my second question? Anders On 3 Okt, 16:15, Walter Lee Davis wrote: > The link that a form submits to is set in the form tag itself, not the   > button. Here's what I mean: > > <% form_tag documents_path, :method => 'get' do %> > >         <%=