search for: url_for_options

Displaying 9 results from an estimated 9 matches for "url_for_options".

2005 Sep 13
6
form_tag & form_remote_tag html id attribute
Hello, Is there a way to set the html element id for the form_tag and form_remote_tag on the server side? I want to have this resultant html... <form id=''something'' ... ... </form> Thank you, Brian Takita
2006 Mar 21
4
Using onSubmit tag in form_tag?
...ls thinks it is a parameter instead of an option, so what I tried next was something like: <%= start_form_tag {:action => ''Add''}, {:onSubmit => ''validate()''} %> Sadly that doesn''t compile. From rubydocs the syntax for form_tag is form_tag(url_for_options = {}, options = {}, *parameters_for_url), so how do I specify the options that I''d want as in this case? Thanks! -- Posted via http://www.ruby-forum.com/.
2006 May 14
3
need help for simple form tag (noob)
when the user click on "Search" I would like it to point to http://curentpage/?filter=searchtext (the filtering code is already written) it would look like this: <%= start_form_tag(url_for_options = {<something>}) %> <%=text_field (<my_filter>) %> <%= submit_tag(value = "Search")%> any idea how to do this? thanx in advance
2006 Jul 09
4
Search terms in URL
I have set up a ferret search using the examples in the demo app. Is it possible to have the search terms included in the URL, so that, for example, users can bookmark a search results page ? Chris -- Posted via http://www.ruby-forum.com/.
2006 Mar 23
2
newbie - form_tag with get?
I can''t create a form with method "get". The rhtml code: <%= form_tag :controller => ''teritory'', :action => ''add'', :method => ''get'' %> The generated html code: <form action="/teritory/add?method=get" method="post"> What i''m doing wrong? -- They say money can''t
2006 Feb 26
1
Help with ruby=>html
Hi! I''m new to ruby and rails and got problems with using basic methods like form_tag or link_to etc to create what i need, i.e. to specify css class or id or name of html elements. I have problem with understanding rails api (it''s just as an example): form_tag(url_for_options = {}, options = {}, *parameters_for_url) what parameters can i pass to form_tag? How to specify class, name or id (those are things i need most)? If someone could clarify the notation used here i''d be very grateful. -- Posted via http://www.ruby-forum.com/.
2006 Jun 16
0
Double encoded ampersands in form actions
...cuments/update_preset/?editor=1&amp;popup=1" method="post"> but instead I get double encoded ampersands in the url: <form action="/admin/documents/update_preset/?editor=1&amp;amp;popup=1" method="post"> This only seems to be a problem with the url_for_options within form tags. Any suggestions? -- Posted via http://www.ruby-forum.com/.
2005 Dec 14
4
newbie q: Form element focus
This is probably a dumb question, but is there an easy way to set the focus of a form to the first visible/editable element? I''ve been googling lots and searching documentation and haven''t come up with anything. Help would be appreciated. -- Posted via http://www.ruby-forum.com/.
2006 May 02
3
file_column : _temp field always nil
Hi, I''m trying to set up file_column to upload attachments for emails. My view has <td align="left"><%= file_column_field ''to_do'', ''attachment'' %></td> and the attachment_temp hidden field is generated. When I inspect tthe params on saving the form the attachment_temp param is always an empty string. Also, when I was