Displaying 20 results from an estimated 10000 matches similar to: "Bug? With image_select_tag processing in controller?"
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"
2006 Jun 07
0
2nd Submit button with options
I wish to have 2 submit buttons one which does a normal sumbit and the
other that does a submit but also passes the parameters such as
"render_action" .
This doesnt work
<%= start_form_tag :action => ''list'' %>
<%= image_submit_tag("find.gif", :alt => "Find and Display", :border =>
0) %>
<%= link_to
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 Nov 05
0
Ajax - attachment_fu - rmagick and iframe
Hello
I am uploading images ajax-attachment_fu-rmagick and an iframe and me
climb correctly, but when I finish the process and the driver will I
redirect_to enc_url I recharge layer ajax. I tried with redirect_to
enc_url :partial => ''m_content'' and redirect_to enc_url, :update =>
''m_content''. But neither I recharge ...
rhtml
------
<% form_for(photo,
2006 Jun 19
0
No assign of name and value from image_select_tag ?
I put
--
Posted via http://www.ruby-forum.com/.
2006 Jan 23
0
form_remote_tag and Safari (HELP!)
<%= form_remote_tag :url => { :action => ''list_setups'' },
:loading => "Element.update(''setupslist_display'','''');
Element.show(''setupslist_progress'')",
:loaded => "Element.hide(''setupslist_progress'')",
:update => ''setupslist_display'',
2007 Nov 06
3
Urgent!!!! responds_to_parent error
Hello
I am trying to upload a picture and refrecar layer with
responds_to_parent. I have this form
rhtml
------
<% form_for(photo, :url => {:action => "create", :tID => params[:tID] },
:html => { :multipart => true, :target => "uploadFrame", :id =>
''uploadPhotoForm'' }) do |f| -%>
<tr>
<td>
<div
2007 Nov 08
0
Models for external REST services
Hello, I''m new to rails so as an exercise I''m porting (php to rails)
a very simple landing page that talks with a third party REST service
where I just need to do a couple of calls to register a user and show
the status of the whole process. I felt this would be dead simple to
do in Rails (I''m still learning) but I''m having a hard time getting it
working.
My
2006 Apr 18
1
''wrong number of arguments'' for text_field?
This is probably something very simple but I can''t seem to figure out
why I keep getting the ''wrong number of arguments (1 for 2)'' error with
the following code when I try to create a new record. If anyone can see
what is going wrong here please help!
new.rhtml
-------------------------------------------------
...
<%= start_form_tag :action =>
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
How to change paypal url from sandbox to papal original url. i am using paypal lib -- paypal (2.0.0)
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
2006 May 18
7
Server out to excel
How would one server out to excel a html table with the mime/content
type
application/vnd.ms-excel ?
In PHP it would be something like
?php
header("Content-Type: application/vnd.ms-excel");
------
But how do I do this in rails?
Cheers Glenn
--
Posted via http://www.ruby-forum.com/.
2007 Apr 17
1
controller.should render_action ?
Hi
Is there a render_action matcher to go with render_template? I can''t
see any mention of one in the docs. Do you have to still do it old-
school?
Thanks
Ashley
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 =>
2006 Feb 14
0
[REQUIREMENTS] Macromedia Flash View for Rails Controller
Hi I know there is no real requirements tag but I was unsure what to
label this message, please don''t flame me :-).
I am using the Javascript Integration Kit with Macromedia Flash to
make a local connection to the rendered Rails view. I am then using
Flash to render my page components (sort of like you do with Lazlo or
Flex etc.) though Javascript acts as a proxy for me. Ideally I would
2005 Sep 19
1
help with has_one relationship??
Hi
I''m new to Rails and I''m struggling with a ''has-one'' relationship. I''m
trying to save product and image data in seperate tables with one to one
relationship. I''m assuming the problem lies in the controller method
below but can''t work it out. The models contain the has_one and belongs
to statements, and I tried swapping these
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 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(
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 Jun 14
3
How to use at_beginning_of_year
I want to get the Date in formation YYYY-MM-DD for the start of the
current year
But I cannot think how to do it...
This generates a name error .rhtml view.
<%= at_beginning_of_year.Time.now %>
--
Posted via http://www.ruby-forum.com/.