Displaying 20 results from an estimated 2000 matches similar to: "NewbieQ: How do you specify a name for a form"
2005 Dec 22
3
NewbieQ : undefined method `stringify_keys!'' Dumb Question
Hi,
I''m running round in circles again! I''m trying to save a note that has a
HABTM relationship with a job. The note is new - the job exists.
In my partial for notes I have ;
<%= start_form_tag :action => ''new_note'', :id => @job %>
<%= text_area_tag "note", nil, :size => "65x10" %>
<%=submit_tag
2006 Mar 21
4
Using onSubmit tag in form_tag?
Hi guys,
I have been working on a form that would use javascript to validate the
data before submitting it, and from my view.rhtml I have a statement
like this:
However such a statement generates a HTML tag that looks like this:
<form action="/users/Login?onSubmit=validate%28%29" method="post">
Seems like Rails thinks it is a parameter instead of an option, so
2005 Dec 30
1
NewbieQ concatenating name in options_from_collection_for_select
Hi,
A real dumb one :~/
How do you concatenate a first_name, last_name as the text method for
OFCFS? Damned if I can do it without error. Is it in the original select
for the collection?
Eric.
2006 Jan 06
6
NewbieQ: How do I refresh view after return from popup window
Hi,
I have this bitta code that is supposed to open a new window and allow
the user to create a new Organisation on the fly whilst editing a new
Person i.e. if the Organisation exists they can select it from the drop
down select. Otherwise they can click on the cute button and enter a
skeleton Organisation record. What I need to do next is refresh the drop
down select on returno the new
2006 Jul 03
6
Rjs $("aaa").insertHtml is not a function error
Hi,
I''ve searched the list and found that someone had the same problem as me
http://lists.rubyonrails.org/pipermail/rails/2006-May/043760.html
I''m have in my page a link like this
<%= link_to_remote ("Add
#{image_tag(''add.png'')}",:url=>{:action=>''addProduct''})%>
and in my controller
def addProduct
..................
2006 May 02
3
file_column : _temp field always nil
Hi,
I''m trying to set up file_column to upload attachments for emails. My
view has <td align="left"><%= file_column_field ''to_do'', ''attachment''
%></td> and the attachment_temp hidden field is generated. When I
inspect tthe params on saving the form the attachment_temp param is
always an empty string. Also, when I was
2006 Sep 19
1
Problem using POST with IE 6
Hey guys, hope one of you can help me.
I have the following code that works with Firefox but not within IE.
The basic premise is that when using a POST to send to my page, IE
doesn''t seem to send it and therefore doesn''t fire the database update.
GET''s work fine in IE but due to the potential volume of text, a GET
is not realistic.
In Firefox, GETs and POSTs work as
2006 Aug 06
2
file upload with form_remote_tag
Is there a way to use form_remote_tag and to upload a file? The default
behavior ignores the upload when the Javascript serializes the form to
create the parameter list.
Basically, i''m just looking for an ajax file upload capability. Any help
would be appreciated.
thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Apr 06
2
Java: How to interact with ruby generated fields
Hello community,
I''m new to rubyonrails and to this Forum. I have to call 2 Fields,
generated by ruby, from a javafunction (onSubmit) but when I use this
example it didn''t work, why?
<%= start_form_tag({:action=> "show"}, { :onSubmit
=>"post[testfieldone].value=examplefunction(post[textfieldtwo].value+post[textfieldthree].value);"
}) %>
2006 Jul 13
2
Iframe upload indicator
I''m using the iframe trick to upload files with form_tag and a target
pointing to the iframe. All is working, but I would like to display an
indicator of the upload. All I want to do is show a hidden animated gif via
Element.show. With form_remote_tag, i could use the :loading and :complete
callbacks to do an Element.show and Element.hide. How do I achieve a similar
effect with form_tag?
2008 Sep 16
7
id in form_tag for update
I get an error saying Rails can''t find the post because I don''t have an
id when doing the update. I have:
<% form_tag ''/meetings/update'', :id => @calendar.id, :onsubmit =>
''return ValidateMeeting()'' do %>
Is this wrong?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You
2003 Jun 10
2
NewbieQ: SOHO setup with x100p
After scouring the list archive and not finding the answer I decided to
post to the list. I'm sure the answer is glaringly obvious but please
bear with me.
Using Asterisk, I'm tasked with setting up a SOHO with 5 analogue (FXS?)
lines and a number of soft-phones for internal extensions. I'm confused
by the telephony hardware needed for this exercise -
1) I need the equivalent of two
2005 Dec 16
12
validates_presence_of not working
Hi,
I''m new to ruby and rails. I just created a simple update page and the
update works fine if all form fields are filled in. However there is one
field that should never be allowed to be blank. So I put this in my
model:
class Topic < ActiveRecord::Base
validates_presence_of :dr_title
validates_length_of :dr_title, :minimum => 1
So, when I submit the form with a blank
2005 Dec 30
3
NewbieQ - Relational tables
Hi all,
I''m going nuts on a very simple issue. I know what I want but don''t know what
to tell rails to do so. I have a very common setup for managing contacts. A
companies table and a contacts table. As you''ve guessed it''s a one to many
relationship.
The database is setup with the appropriate foreign keys, the models have been
generated and I added the
2006 Apr 15
6
view code regular expression
I''m lost on regular expressions to begin with...
I''m trying to fix a value to one of 4 radio buttons as there will be
value of either 1,2,3 or 4 in @roles_users...
<TD><input type="radio" id="roles"
name="case_managers[case_manager_name]"
value="Case Manager Admin"
<% if =~ @roles_users /1/ checked =
2006 Jul 03
7
form_remote_tag with multipart/form-data
Does form_remote_tag supports multipart/form-data ?
My form looks like this:
<%= form_remote_tag :url => { :action => ''do_image_upload'' },
:html => { :enctype => ''multipart/form-data'' } %>
<%= file_field ''image'', ''file_data'', :size => 32 %>
<%= submit_tag
2009 Jan 08
4
Problem with disable_with
Hi Group,
I have a registration.html.erb page with the following JavaScript at
the top which I use to validate form fields:
<script type="text/javascript">
<!--
function validate(){
if ((document.myForm.email_projectname.value=="")||
(document.myForm.email_projecttype_id.selectedIndex<1)||
(document.myForm.email_region_id.selectedIndex<1))
{
alert
2006 May 18
6
Form actions with additional parameters
Hiall,
I want to give the action of a form an additional parameters but can''t
figure out how to do it. My code looks like this
<%= start_form_tag :action => ''create'', next_step => true %>
<%= render :partial => ''user_form'' %>
<%= render :partial => ''community_form'' %>
<%= submit_tag
2007 Oct 03
4
form_remote_tag :onsubmit not working.
Hi,
Has anyone successfully implemented the :onsubmit option for
form_remote_tag. It doesn''t seem to work for me. Is there any specific
version of rails which is required for the same.
Here''s my piece of code.
<script>
function set_tojid(){
alert(''onsubmit'');
}
</script>
<%= form_remote_tag :update => '''', :url => {
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/.