Displaying 13 results from an estimated 13 matches for "subform".
Did you mean:
subforum
2006 May 18
4
Cascaded Forms
Hi guys, it''s me again ;)
is it possible to put forms into forms? My problem is, i have a form
which gathers informations about an SSL Certificate order. There is a
field which holds the SSL CSR file. Now i wanted to put in a subform
which has an form_remote_tag and decodes that CSR file and returns if
everything was okay or not.
Now if i put in a submit_tag it submits my form which holds the ssl cert
order instead of the subform which should only check for the correctness
of the CSR :)
I mean in PHP i''d assign t...
2006 May 29
1
validation in a "subform"
I''ve been following the rails/osx tutorial at
http://developer.apple.com/tools/rubyonrails.html
This develops a simple application with expenses and accounts.
Near the end of the tutorial, there is a view which allows expenses to
be added to an account.
This view has the "parent" @account rendered, then iterates throught
@account.expenses to display the existing accounts,
2007 Mar 13
7
Form with subforms
Hi,
I''m looking for a way to implement subforms. For example, a form where
you can add clients, and at the same time enter contactpersons for
this client.
I''ve been looking around, reading ebooks, etc, but can''t seem to find
a good example/tutorial for something like this. So I would be very
thankful if someone could point me...
2006 Feb 08
1
Adding children via small subform
I''ve read AWDR and especially the part concerning adding child
line_items to an order. Unfortunately I want to do my process in
reverse and in doing what I thought would work I get a null object error
when trying to append the children to the parent.
This is a _major_ stumbling block in my Rails use as almost every one of
my projects has needed this so its a pretty vital problem I need
2006 Nov 30
4
response is null when using should_render_rjs
...to test a controller that has ajax.
I have the following action:
def change_ad_type_form
render :update do |page|
page.replace_html ''ad_sub_form'', :partial => ''text''
end
end
and the following spec:
specify "should return Text subform on AJAX request to
change_ad_type_form" do
controller.should_render_rjs :page,
''ad_sub_form'', :replace_html, ''stuff''
get ''change_ad_type_form''
end
which result is the following:
1)
NoMethodError in ''When creating...
2006 Apr 09
4
submitting forms help
I cant seem to figure this problem out and i was hoping someone could help
me out.
I have a page with a list of forms. I would like the user to be able to
submit each form individually, or submit them all at once, to a different
action (bascially, one that will do batch processing of all the forms).
Is this possble? Please help.
-------------- next part --------------
An HTML attachment was
2006 Jun 20
6
checkbox_tag outside a form?
Is it possible to use checkbox_tag outside a form? I''ve put it in a view and it renders but I get nothing back in the params hash. Is there a way to get the value? Like maybe with some JS onsubmit to populate the params hash myself?
Thanks,
Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Mar 14
0
Search within an Add page
...ying to do:
I have a view which adds a new "part" to a list of parts for a supplier.
This works just fine. However, one of the attributes of the "part" is a
foreign key to a list of manufacturers products.
I want to have the one "add part for supplier" view have a subform that
will allow the user to filter and select a manufacturer''s product.
So a couple of questions:
1. How do I do a search view? Can you suggest an example?
2. How can a view have more than one action button? In my case, I want a
"add" button for adding the part, and also a...
2007 Feb 19
0
Ajax.Update nested within Ajax.Request
...is
working fine. onComplete or onSuccess though, I''d like it to refresh
the div form (formCapture), but so far I can''t get it to work. The
script runs to into the onComplete stage, but the div isn''t refreshed.
Can anyone help with this?
Regards,
Robert Hofmeyr
function subForm() {
new Ajax.Request(''captureall_action.php'', {
method: ''post'',
parameters: Form.serialize(''formCapture''),
onComplete: function(transport){
//var response = transport.responseText || "no response
text";
//alert("Success! \...
2007 Apr 13
1
How can I use aggregation objects in form_for?
Say I have a person object which has a aggregation object call
address. The the code to manipulate a form for create a new person
should be:
# new.rhtml
<% form_for :person, :url => {:action => ''create''} do |f| %>
<%= render :partial => ''form'', :locals => {:f => form} %>
<%= submit_tag "Create" %>
<% end %>
2006 Jan 12
7
Is anyone using oracle with RoR successfully?
Hi,
Is anyone using Oracle with RoR successfully?
Is everything running smoothly?
What are the main issues?
any response is appreciated
thanks,
Chris
--
Posted via http://www.ruby-forum.com/.
2011 Mar 02
2
Nested forms validation problem
...gt;
<%= user.text_field :email %>
<%= render :partial => ''features/form'',
:locals => { :form => user } %>
/app/views/features/_form.html.erb
<%= form.fields_for :feature do |f| %>
<%= f.text_area :profile %>
Debugging @user.errors shows the subform items are being outputted as
follows:
:"feature.profile": can''t be blank
Wheras the other form shows the error messages being output:
:first_name: can''t be blank
I''ve googled this issue but haven''t found anything that has worked -
would appreciate...
2006 Feb 16
1
file_column problem
...:id => @user
end
4. Form looks like this:
<%= form_tag({ :action => ''updateyourpic'' , :id => @user }, :multipart
=> true) %>
<%= render_partial ''userpic'', :user => @user, :submit => true %>
<%= end_form_tag %>
in my subform I have...
<%= file_column_field "user", "image" %><br />
<br />
<%= submit_tag ''Upload it!'' %>
5. The file shows up in the temporary directory, but never gets saved to
the database or to the file system.
6. I get the following...