similar to: image_submit_tag, :get method and x&y issue

Displaying 20 results from an estimated 13000 matches similar to: "image_submit_tag, :get method and x&y issue"

2007 Mar 06
1
link_to, image_submit_tag, "changes only with POST" and "usability without Javascript" question
Hello, I want to have the following features in my rails application: 1. the program should have AJAX if Javascript available 2. I want to protect my application described in http://www.w3.org/2001/tag/doc/whenToUseGet.html - means GET should be safe 3. if Javascript is disabled the application should work too (without AJAX) If I use "GET should be safe" option (verify) and link_to
2007 Jul 22
2
undefined method `stringify_keys'
Hello I have a view for user registration but when i try to view this page i get this error: undefined method `stringify_keys'' for "username":String Here''s my registration.rhtml: <% form_tag :controller => :user, :action => :register do %> <fieldset> <label for="username">Username>/label><br/><%= text_field_tag
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") %> [...] <%=
2007 Aug 03
2
Does collection_select work in list.rhtml?
Hi, I have 2 models: Model 1: er, Columns: <er_id, er_name> Model 2: er_process, Columns: <er_id, er_process_name> er_id is a foreign key for Model 2. When I am creating a new er_process or editing an existing one, I have been successful to use collection_select to show the available er''s so that the user can select a particular er by its name (to populate the er_id
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 =>
2008 Feb 20
1
text_field_tag - different parameter name
Hi, I have one problem with validation I am creating e-shop and I have products. This view look like this: <% for product in @category.products %> <div class="produktyBox"> <%= product.title %><br /> Price: <br /> <div style="color:red; font-size:large; font-weight:bold; margin- bottom:5px"><%=
2006 Mar 06
2
form_tag error -- not found, 404 -- action DOES exist!
Hi -- I''ve got a very strange error. I have an action called ''commit_input'' on a controller called ''SiteVisitController''. This definately exists, and is called from the functional test for it, and passes fine. My problem is with the form that is supposed to call this action. The form tag is: <%=
2008 Mar 16
1
form_for error
Hi all, I have the following code in my application layout: <div id="utility"> <% if logged_in? %> <%= link_to "Sign Out", logout_path %> <% else %> <%= link_to_function "Sign in", "$(''signin'').toggle();$(''signin_link'').toggle()", :id => "signin_link" %>
2010 Oct 11
0
Converting observe_field to UJS in Rails 3
I am trying to rewrite my website in Rails 3 and Ruby 1.9.2. Can some one help me convert my observe_field which is working under Rails 2.3.5 to Rails 3. I would like to avoid using JQuery as over the last year everything I have tried in JQuery has failed, including this one. Perhaps due to my lack of knowledge. I would not like to install the legacy upgrade. What I have in my website is several
2006 Feb 27
2
Multiple forms on a page
Hello all. I have the following Code in a view: <% @dishes.each do |dish| -%> <tr> <td><%= link_to dish.name, :controller => "restaurant", :action => "show_dish", :id =>"#{dish.id}" -%> <% if dish.vegetarian? -%> <%= image_tag("/images/vegetarian.gif", :class => "bevel", :size => "8x8")
2011 Feb 20
3
ugly url form_tag
Hi all I am using form_tag helper and everything is sent by the get method. In the url looks like : http://localhost:3000/posts?utf8=%E2%9C%93&search=rails The utf8 attributes is pretty much ugly. Is there a way (in Rails 3) the url looks like something like : http://localhost:3000/posts/search/rails If yes what do I need to change in my code ? Here is my code <% form_tag posts_path,
2007 Oct 05
7
Trouble with text_field_tag
I am trying to implement a basic login page: login.rhtml 1 <fieldset> 2 <% form_tag do %> 3 <label for="name">Name:</label> 4 <%= text_field_tag :name, params[:name] %> 5 <label for="password">Password:</label> 6 <%= password_field_tag :password, params[:password] %> 7 <%= submit_tag
2006 May 12
1
Uploading a file with form_remote_tag problem.
params[uploaded_file] is not recognised when i try form_remote_tag like this: <%= form_remote_tag :url=>{:action => "save_file"} ,:html=>{:multipart => true} <%=text_field_tag "name"%> <input type="file" id="uploaded_file_file" name="uploaded_file[file]"/> <input type="submit"
2006 Mar 13
0
Controller handling of Non-model fields
I''m a bit confused about how the Controller works for calls that aren''t intended to be remote (non-Ajax). Specifically, if I don''t want to interact with a Model. Does ":action => whatever" always result in a call to the server? Or is it handled like a javascript function (locally, on the client) in the cases where no Model interaction is needed? For
2008 Aug 25
0
ActionController::MethodNotAllowed
Hello All, I m trying to use a form on my website to send an email. So my form goes like this : <% form_tag("/emailfeeder/create", :method => :post) do %> <tr> <td class="col1">To: </td> <td class="col2"><%= text_field_tag "recepient", @recepient.to_s, :disabled => true %></td>
2009 Apr 12
3
Multi-button form
It cannot be this difficult, especially in rails. Here is my form code in a partial for the index action of a controller: <% form_tag({:controller => controller_name, :action => ''index''}, {:method => :get, :class => ''form''}) do %> <div class="columns"> <div class="column left"> <p>
2006 Jul 27
1
Routes not working when submitting a form
Hi, I have the following code, a very basic textfield with a submit button: <%= form_tag({:controller => "job", :action => "index"}, :method => ''get'') %> <%= text_field_tag ''province'', @province %> <%= submit_tag "search" %> <%= end_form_tag %> In my routes.rb file I have: map.connect
2008 Nov 15
0
form_tag with the new template
Hi, I am trying to modify the existing template of new provided by rails using form tag My controller is languages new.html.erb looks like this <% form_tag :controller=> "languages", :action => "create" do %> Language <%= text_field_tag "language" %> <%= submit_tag "Create" %> <% end %>
2006 Mar 28
0
ajax question about refreshing divs
Ok, I have manny divs in the html, and I have a login form in a inner div, if the user tries to login and the user/password is invalid, only the inner div needs to be refreshed and show the user the error. If the user/password is ok, the main div needs to be refreshed. How could I do this? this is the view in example <div id="MainDiv"> foo <div
2009 Mar 19
0
How to change paypal url from sandbox to papal original url. i am using paypal lib -- paypal (2.0.0)
sub :How to change paypal url from sandbox to papal original url. i am using paypal lib -- paypal (2.0.0) Hi all, I am test my application with local it working fine when i want to go for live. i need to change the pay pal form target to Paypal orginal site address. I don''t know how to chage the form target in paypal helper. i paste my code below.. plz check it. I use paypal lib