Displaying 20 results from an estimated 269 matches for "start_form_tag".
2006 Jun 27
3
start_form_tag question..
i am trying to get a start_form_tag working, but i am shooting blanks..
here''s what i am trying to do..
i have a controller called "forms.." with an action "new_entry"..
it is called by:
localhost/forms/new_entry
this is just a quick form to test another action..
that action is:
localhost/logger
m...
2006 Feb 21
2
start_form_tag with method GET
Hi,
How can I get start_form_tag to use GET instead of POST?
I have tried...
<%= start_form_tag {:action => ''search''}, {:method => ''get''} %>
But it doesn''t work...
compile error
./script/../config/../app/views/search/index.rhtml:35: syntax error
_erbout.concat(( start_fo...
2006 Jan 19
9
start_form_tag not taking url_for options
I''ve got a form that should post to user/login. The code to start the tag is:
<%= start_form_tag { :controller => "user", :action => "login" } %>
That gives me this exception:
compile error
script/../config/../app/views/user/login.rhtml:1: parse error,
unexpected tASSOC, expecting ''}''
_erbout = ''''; _erbout.concat(( start_form_ta...
2006 May 18
6
Form actions with additional parameters
Hiall,
I want to give the action of a form an additional parameters but can''t
figure out how to do it. My code looks like this
<%= start_form_tag :action => ''create'', next_step => true %>
<%= render :partial => ''user_form'' %>
<%= render :partial => ''community_form'' %>
<%= submit_tag "Optional Next Step" %>
<%= end_form_tag %>
&...
2006 Aug 15
1
Question on start_form_tag and get post method
Hi all,
I have a simple question about start_form_tag. It default generates
method=post. I was wondering how you could use start_form_tag to generate
method=get. Probably a simple question but one I can''t answer with the API
doc.
Thanks in advance,
Onno
2006 Mar 23
1
start_form_tag how to use the options parameter ?
Hello, I don''t understand how to use the options parameter of
start_form_tag
I want to have the class and id attributes of the form initialized to
"Foo"...
I suppose it''s something like
start_form_tag( :options[''class''] => ''Foo'', :options[''id''] => ''Foo'')
But I can''t...
2006 Mar 07
6
form_tag - directing to new target window
How do I use...
<%= link_to "All Facilities", :action => ''fac_log_all'' %>
if I add :target => "_new" that is just a parameter and not a
directive.
I just want reports to print into a separate window. How do I do that?
It''s not clear at all to me
Craig
2006 Apr 08
2
Add id to form_tag?
Hi all,
What is the correct syntax to add an id attribute to a form tag with the
"form_tag" helper?
I''ve tried
start_form_tag({:controller => ''houses'', :action => ''find''}, {:method =>
:get, :id => ''search''})
start_form_tag({:controller => ''houses'', :action => ''find''}, :method =>
:get, :id => ''searc...
2006 May 04
4
form post not working
Hi there,
I have this form code in a view:
<%= start_form_tag :action => "listByArtist", :id => artist.id %>
<p><b>List by Artist:</b>
<select id="artist_id" name="artists[id]">
<%= options_from_collection_for_select(@artists, "id", "name") %>
</select>
&l...
2006 Mar 21
4
Using onSubmit tag in form_tag?
...atement
like this:
However such a statement generates a HTML tag that looks like this:
<form action="/users/Login?onSubmit=validate%28%29" method="post">
Seems like Rails 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...
2006 Jul 12
5
start_form_tag n00b question
Hi,
I''m wondering if there is any way to specify the id of a form tag with the
start_form_tag helper. I''ve tried playing around with ", id=>"marginForm" "
and also inclosing both the action variable and id variable in curley
brackets. The Rails API doesn''t off much help for a n00b like me. It''s
probably really easy but any help you guys can...
2006 Apr 05
25
How to avoid bunch of <% %> ??
Hello, I would like to know is there is a way to avoid poluting the
views with tons of <% %> ?
Like this
<%= start_form_tag() %>
<%= text_field_tag(''category[title]'', category.title, {:size => 20,
:maxlength => 128}) %>
<% if not category.parent_id.nil? %>
<%= select("category", "parent_id",
Category.find(:all, :conditions => [ "id <...
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 Jul 03
2
Still struggling with data flow ...
Hello,
The following view:
<%= start_form_tag %>
Enter term to find
<p>
<%= text_field_tag :name, params[:name] %>
</p>
<%= link_to "Find", { :action => ''find_term''} %>
<%= end_form_tag %>
does not appear to pass back the value of :name to t...
2005 Dec 22
2
routes and url_for
...l.
I try to relocate controllers. Admin space controlers moved to
/app/controllers/admin and user space controllers to
/app/controllers/user
In routes.rb I use
map.connect ''search'', :controller => ''user/search''
that correct I see.
But when I want to use start_form_tag or simply url_for, that used in
start_form_tag, I do not know how generate url like /search, becouse
url_tag return url corresponding with routes.rb rules:
/user/search
So, what is the right way to do this?
--
timurv mailto:timurv-NKHNqjRO7gY@public.gmane.org
2006 Feb 13
2
how to find the helpers code ?
Hello,
i have the application set up on my radrails. I was looking at the view
generated by scaffold and i see a bunch of names, after looking up
internet i found that they are helpers and generate the HTML for us.
Now, i wanted to look at the helper code for start_form_tag, so that
based on that i could write some of my own helpers in my helper
classes... but i could not find the code anywhere for
start_form_tag, end_form_tag, or submit_tag or render or anything... !!
Also where could i find out what are the parameters required for these
helpers (if i cant see t...
2006 Jan 22
12
Problems with File_column
...39;'m running Locomotive Rails under OS X 10.4.4, and using
Safari)
I followed the directions to add the necessary items, then found out
that I had to add the item to make the form tag be a multipart item.
(Sebastian - you may want to update your docs for this!)
However, when I changed the start_form_tag item to be:
<%= start_form_tag :action => ''create'', :multipart => true %>
I get a form tag like:
<form action="/teams/create?multipart=true" method="post">
which leads to an error. I can change it to:
<%= start_form_tag({:action =>...
2006 Jun 30
4
Serious noob question. Any help would be great
...etting an error:
"Unable to find without an ID. Hopefully someone here can tell me where
I''ve gone astray. Here is the code I have right now:
##controller.rb
def edit
@support_call = SupportCall.find(params[:id])
end
def find
end
##find.rhtml
<html>
<body>
<%= start_form_tag :action => "edit", :id => params[:id] %>
<%= text_field "support_call", "id" %>
<%= submit_tag "Find It!" %>
<%= end_form_tag %>
</body>
</html>
--
Posted via http://www.ruby-forum.com/.
2006 Mar 30
7
text_area
How to make that the typed code on ruby in text_area it was carried out
in @params ["name"]??
--
Posted via http://www.ruby-forum.com/.
2006 Feb 03
9
Because I''m very slow - trying to use console
I can''t see how to use variables so I am using console to test things
out...
clients table - a column named first_name
My very brief console session...
>> clients = Client.find_by_sql("select * from clients where first_name
= FN")
ActiveRecord::StatementInvalid: RuntimeError: ERROR C42703 Mcolumn
"fn" does not exist Fparse_expr.c L1034