search for: submit_tag

Displaying 20 results from an estimated 563 matches for "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...
2007 Sep 04
2
How can i add a confirmation dialog to a submit_tag?
...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 "submit_tag" rather than "button_to". But it doesn''t seem to be possible, looking at the submit_tag source or trying it in my code (unless i''m just being dumb). Can anyone explain how i can do this please? thanks! -- Posted via http://www.ruby-forum.com/. --~--~---------~-...
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 mostly recommended? I am using the latest version of rails, and...
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, but isn''t disabled once cli...
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... t...
2008 Apr 30
5
Quick Submit Button Question...
...? 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 Exchange'', :name => "rad", :id => "0", :onclick => "doClick(this)" %> <%= submit_tag ''force full push'', :name => "radtwo", :full => "full", :onclick => "doClick(this)" %...
2006 Jul 14
3
Rails newbie: How does the submit_tag work?
...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 Question'' %> expands to <input name="next_question" type="submit" value="Next Question" /> RHTML follows: --------------------------------------------- <head><% javascript_include_tag "prototype" %></...
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( "Schedule", {:alt=>"Schedule Card", :class=>"butt...
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-/J...
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, th...
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
...#39;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 Up", :disable_with "Patience..." %></ p> When I tail the development.log I never see this action get posted to the server. If I use any of the other browsers, the action completes just fine. I am using the :disable_with "Patience..." option throughou...
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 select tag (drop-down list)? Thanks, Lantis. -- Posted via http://www.ruby-forum.com/.
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 change some additional fields. Thanks a lot, Alex -- Posted via http://www...
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"?
...io'', :name=>''tariff_plan_id'', :value=>"yearly"} - form_remote_tag(:update => "result_discount_code", :url => { :action => :discount_code }, :position => "top" ) do =text_field ''discount_code'' =submit_tag ''Apply Discount'' #result_discount_code =submit_tag ''Subscribe'' Can I use form_remote_tag inside the form_tag? When user hit ''Apply Discount'' button i will perform following steps get the value of radio button "tariff_plan_id&qu...
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/.