similar to: link_to, image_submit_tag, "changes only with POST" and "usability without Javascript" question

Displaying 20 results from an estimated 4000 matches similar to: "link_to, image_submit_tag, "changes only with POST" and "usability without Javascript" question"

2007 Feb 28
6
DRY question - image_tag :alt and :title the same
Hello, I have the following: image_tag(''show.png'', :alt => ''show article'', :title => ''show article'', :border => 0) Is it possible that I donĀ“t need to have "=> ''show article''" twice in this row? e.g. something similar to this pseudo code: (:alt, :title) => ''show article''.
2007 Sep 12
0
image_submit_tag, :get method and x&y issue
For search functionality I am using :get method to post the form. I am also using image_submit_tag. <%= form_tag({:action => ''search''},{:method => :get}) %> <label>Search:</label> <%= text_field_tag ''term'' %> <%= image_submit_tag "search.png",:name =>
2007 Oct 15
6
Form with two buttons
Hi, I need to make a form with two buttons. But I do wrong. And why not can be. form: ------------------------------- <%= form_tag :controller => ''establishment_contents'', :action => ''llamada'', :opMenu => opcionMenu %> [...] <%= image_submit_tag ("../images/incluir.gif", :op=>"addImage") %> [...] <%=
2006 Mar 25
5
button_to with image?
I''m trying to use button_to and have it use an image in place of the submit button. I had figured it would work the same as link_to like so: button_to(image_tag("editicon", :size => "16x16", :border => 0), :action => ''edit'', :id => person.id) but this instead displays the image code as the button name. Surely there is a simple way to
2006 Jan 17
6
link_to or helper to generate a javascript:history.back() ?
Hello, There is an link_to option or an helper that generate a link like : <a href="javascript:history.back()">Back</a> Thanks
2006 Jan 26
2
javascript in link_to?
having trouble finding how to include a random chunk of javascript (an onclick event handler) in a link_to generated link. at first i thought i could use the html_options field, but if i understand correctly, that only supports :confirm, :popup, and :post options. hope i''m wrong. anyone know different? john _______________________________________________ John McGrath
2008 Apr 17
0
link_to method doesn't work with shared css/javascript class
<script> ddaccordion.init({ headerclass: "expandable", ..... </script <li class="expandable"><%= link_to "institut", {:controller => "news"} %></li> ...at first I want to say that I''m pretty new in ruby ... may u are able to help me: i have an accordion navigation and the headers, which
2006 Jun 16
2
image_select_tag with name and value
What have I missed I have a .rhtml with the sandard form parameters <%= image_submit_tag("excel.gif", :alt => "Download List to Excel", :border => 0, :name => ''render_action'', :value => ''excel'' ) %> Which genenerates I believe a valid html fragment for a submit button. <input alt="Download List to Excel"
2008 Sep 07
1
remote_form_for, paths, and partials
hi, i''m having a little trouble rendering a partial that uses a remote_form_for and is in another controller. <%= render :partial => "reviews/new"-%> and in the partial i have only this, inside another controller <% remote_form_for @review do |rv|-%> <%= rv.hidden_field :value, :value => 1 -%> <%= rv.image_submit_tag "thumbsupnc.png" %>
2008 Jul 23
0
Link_to_remote object missing
Hello, I''m in troubles trying to use ''link_to_remote'' on Rails 2.1. Having this page: <h4>Editing project</h4> <% form_for(:project, :url => project_path(@project), :html => { :method => :put }) do |f| %> <p> Name <%= f.text_field :name %> Date <%= calendar_date_select :project, :target_date, :time =>
2006 Apr 21
4
link_to_function with submit
I looked everywhere but couldn''t find it. I don''t want a submit_tag or image_submit_tag but a normal link that submits my form. Normally I would do this with a javascript like function sendForm () { document.forms[0].submit(); } but this doesn''t work with form_remote_tag link_to_function( ''Send'' , "sendform();") So the question is:
2006 May 19
4
why no multiple submit?
is it by design? is it standard? how do you give users multiple actions on a form? -- Posted via http://www.ruby-forum.com/.
2006 Aug 17
0
super-newb needs help with has_many and other things...
I am brand new to oop and am having a difficult time getting my head around some ruby stuff. In specific, I am trying to create a library style app that lists topics, articles and comments. I have a table called topics, a table called articles and a table called comments. My models, controller and view are all listed below. What I want to happen is to have the list view list each topic along
2006 Jun 20
0
No opening form tag in rendered HTML
I cannot get my form to submit for my simple blog site (based on the "How to Build a Blog Engine in 15 Minutes" presentation) Any ideas? Thanks, Tom ---------------------------------------------------------------------------- Here is my code: #Post controller class PostsController < ApplicationController def index list render :action => ''list'' end
2007 Feb 27
1
link_to :post true Newbie question
Hi All, I am attempting to use a link_to helper to perform a form post using the following construct: <%= link_to ''Save'', {:action =>''create''}, :post => true %> What I find is the parameters passed to the webserver are empty. My model validation stuff triggers indicating the fields in question are empty too. This is to create a new DB entry so no
2006 Jan 22
6
Destructive behavior with link_to, button_to, :post=>true
Hello- I would like to know what the suggested practice is for having multiple submit buttons on a relatively complicated input page. Let''s use the example of a Contact. There is lots of info there, including name, address, phone number. There is also a list of "contact associations" which can be modified on the same page. Ideally, the user could have one
2006 Oct 06
0
link_to with :post => true causes "link hop" on submit
I have a link_to function that I''m calling with :post => true. When I click it, the link (which is in a table cell) moves up a bit and pushes the next table row down just a bit, like it''s hopping. My guess is that in the generated Javascript (by link_to), the addition of the form to the DOM is causing the link itself to move. Anyone seen this before, and if so, know a
2014 Mar 29
0
rails 4 link_to post method
I have a rails 4 app that has a link_to with a post method but I keep getting: No route matches [GET] "/payments/136330" <%= link_to("Buy Now", buy_path(list_item), :method => :post) %> Ideas?? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving
2006 Feb 14
0
help: link_to with :post => true
I''m having trouble getting anything in the params hash when I do: <%= form_tag(:action => ''edit'') %> <table border="0" id="detailtable"> <tr> <td>* Email:</td><td><%= text_field_tag(''member[email]'') %></td> </tr> <tr> <td colspan="2" /> </tr>
2007 Jan 15
2
Help with with displaying a selected list.
Hello. I call a find_all_by_subject("action") which returns 2 videos and displays them properly. But when I add @video_pages, @videos = paginate :videos, :per_page => 10 so I can paginate the videos, it displays ALL the videos as if I selected list videos. Can someone please tell me what I am doing wrong? Thank you. selectaction.rhtml <table> <tr> <% x = 0 %>