Displaying 20 results from an estimated 563 matches for "submit_tags".
Did you mean:
submit_tag
2006 May 22
2
Submit_tag question
Can I pass additional parameters when using a submit_tag?
Is this legal?
<%= submit_tag ''Save'' , { :editfacility => params["editfacility"] }
%>
When I do this, the "editfacility" parameter is always lost. I have a
feeling I''m missing something basic...
Thanks,
Marcus
-------------- next part --------------
An HTML attachment was
2007 Sep 04
2
How can i add a confirmation dialog to a submit_tag?
When i use button_to or link_to, i can easily request a confirmation
dialog with (for example)
<%= button_to "Delete this story",
{ :controller => "story", :action => "delete", :id => @story.id },
:confirm => "Delete story: are you sure?" %>
I also want to do this for the submit buttons on my forms, which are
2009 Oct 19
1
submit_tag or f.submit
Hello all,
I am pretty much new here, trying to move to RoR from .net world.
I will appreciate if anyone clarifies this for me.
Most of books use "submit_tag" in new or edit views, but I see Rails API
web documents use "f.submit" instead. I also see Agile Web Development
using RoR 3rd Edition use the same "f.submit" instead of "submit_tag."
Which way is
2010 Jan 20
5
disable submit_tag after click
This code disables the ''Save'' button once clicked, but doesn''t seem to
send the form data.
<%= submit_tag ''Save'', :class => ''submit'', :onclick =>
"document.getElementById(''save_button'').disabled=true;", :id =>
"save_button" %>
This code sends the form data and a record is created,
2006 Feb 27
2
submit_tag
How can i use the submit_tag method (from: actionView::FormTagHelper)
to create various submit buttons and chose the right action in accord to
the button that i pushed?
--
Posted via http://www.ruby-forum.com/.
2009 May 24
1
is f.submit in a form_for newer than submit_tag?
some books or even the rails api uses
form_for ...
...
submit_tag ...
end
and i found that the Rails 2.3.2 Scaffold uses
f.submit "Go"
instead... and this is not in the rails api doc. Is this a new
addition and is it suppose to replace submit_tag?
--
Posted via http://www.ruby-forum.com/.
2007 Jun 26
3
what is the :or parameter in a submit_tag ?
I read the following tag in teh Beast example
<%= submit_tag''Login'', :or => link_to_function(''forgotten password'',
"$(''reset-password'').toggle();") %>
I understand the link_to_function, but what is this :or parameter used
for ?
the link doesn''t appear, so it cannot be used...
thanks for your lights
kad
--
2008 Apr 30
5
Quick Submit Button Question...
Hello,
Can I pass a variable from a submit button only? I have a form that the
user fills out and I need two different submit buttons - one for ''sync''
and one for ''full push''. I was thinking I could add some sort of param
to the button, but it''s not working... is there a way to do this? I have
this:
<%= submit_tag ''push to
2006 Jul 14
3
Rails newbie: How does the submit_tag work?
I would appreciate any and all input. The Agile book is not useful in
this context. :o(
As near as I can tell, it doesn''t work at all.
I would expect that clicking on the [Next Question] button in the
browser would fire the next_question method in the current controller.
Instead, it (apparently) does nothing.
The tag in question
<%= submit_tag ''Next
2007 Jun 23
2
type image submit tags on IE dropping the params
I have noticed that on IE, the @params[:commit] does not come through on
image submit tags, but it does when the image is removed.
this fails:
<%= submit_tag( "Schedule", {:type => "image",
:src=>"/images/buttons/schedulecard.gif", :alt=>"Schedule Card",
:class=>"button"})%>
but this works:
<%= submit_tag(
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 Oct 19
1
link instead of submit_tag?
How I replace:
<%= submit_tag "Search" %>
with a text link? (like link_to or so?)
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this
2009 Apr 19
1
Overriding html generated for submit_tag and selected links
Hi,
Probably something simple, but I''m trying to change my submit_tag and
other buttons to CSS based buttons based on the article at
http://www.oscaralexander.com/tutorials/how-to-make-sexy-buttons-with-css.html
Basically this needs the following HTML markup:
<a class="button" href="#"><span>Button Text</span></a>
So, the question is how can
2008 Dec 16
5
More than one submit_tag in a single form
Hai everyone ,
I have a list of users(each user in a row)and an Approve button for each
user. I wish to change the status of the user to be approved when I
click on the Approve button of a user. When I tried getting all the
users in the params hash. I want to get the id of the user according to
which "Approve" button I clicked. How can I implement this one?
Thanks in advance.
--
Posted
2010 Nov 30
2
IE problem with submit_tag
I''m having some difficulty with IE8 on a Rails 2.3.5 app. I''ll state
from the outset that this problem does not occur with Firefox, Chrome,
or Opera when run on the same system so I''m reasonably certain I''ve
got an IE issue here.
Here''s a simple description:
I''m ending a Users#new form with:
<p><%= submit_tag, "Sign
2006 Apr 08
2
Multiple submit buttons
Hi,
How do i differentiate different submits tags / buttons on one form. Say
I want to create an edit form and I want to provide two buttons; one to
save and one to cancel. I would have:
<%= submit_tag ''Ok'' %>
<%= submit_tag ''Cancel'' %>
How do I know which button get pressed by the user?
One more thing, how to specify the default selection in a
2006 Apr 27
1
Simple question - several submit_tags for multiple actions
Hello
Started with Rails just a couple days ago and got stuck in two ways - I
like it (and would like to learn more) and cannot really figure out how
to use the submit_tag within the form_tag to initiate alternative
actions depending on which submit was chosen. One submit should function
exactly like the edit/update action from the initial scaffold while the
other should do the same plus
2006 Mar 09
7
how to make two forms on the same page???
I can get the forms to be displayed, but i want to have only one
"create" button. i''ve tried everything i can think of...
--
Posted via http://www.ruby-forum.com/.
2009 Sep 17
2
Can i use "form_remote_tag" inside the "form_tag"?
Hi all,
How can i use form_remote_tag inside the form_tag helper .
My application has following view subscribe.html.haml
- form_tag :action => :subscribe do
/other form element
%input{:type=>''radio'', :name=>''tariff_plan_id'', :value=>"monthly"}
%input{:type=>''radio'',
2006 Aug 15
2
Are form_remote_tag and submit_to_remote mutually exclusive?
Do I need to use submit_to_remote in conjunction with or instead of
form_remote_tag? The description in the API docs. is confusing.
Is the combination of form_tag/submit_to_remote valid?
Is the combination of from_remote_tag/submit_tag valid?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.