Displaying 7 results from an estimated 7 matches for "formfields".
Did you mean:
formfield
2006 Jul 02
6
remote form w/ evalScripts:true
Hello. I want to select an item from a select list and have that
result in an ajax call that updates two sections on the page. Here is
the code in the controller
def create
...
render :update do |page|
page.replace_html ''list_items'', :partial => ''lists/list_items''
page.replace_html ''add_item'', :partial =>
2006 Jul 17
2
error_messages_for ?
Hi,
I can''t list error_messages in my Form ??, and all the formfields are
reset ...(I think my redirect :back clean everything, formfield and
error_messages ...), only my flash[:notice] is ok....
I would like to use the "error_messages_for" tag to add a simple red *
on my textfiled if a problem occurs ...
thanks for help
arnaud
here are the basics st...
2006 Jun 21
2
Validation on update
Searched for it, but found nothing, so i open a new topic :/
I think it is very basic stuff...
My model has a validation rule like this:
validates_presence_of :title
If i try to save the model (@mymodel.save) with an empty title-formfield
i get an error. hooray! that''s what i want!
okay i insert a valid title and everything is fine.
now i want to update the model (@mymodel.update) and
2007 Jan 18
7
form_tag broken in Rails 1.2 RC2 or is it me?
I''m using Rails 1.2 RC2 and I''ve got a view that uses form_tag and the
form is not being rendered. It''s just not there. My view is this:
<div class="box">
<fieldset>
<legend>Log in</legend>
<% form_tag do %>
<div class="row">
<div class="formfield">
<label
2006 Jul 12
0
Form validation with Javascript does not work
Hello,
i try to validate with JS if a Formfield has been filled with data.
Usually I use "onsubmit()" in the form.
My Code is
<%= start_form_tag :action => ''update'', :id => @person.id,
"onsubmit"=>"return
isDateSet(document.forms[0].elements[''fieldname''].value)"; %>
The JS-function returns false if length of
2006 Mar 28
8
Large Database with lots of tables
Hello all,
I am a rails nuby and I am evaluating using Rails for a new web
application. The application will have a large number of tables (>70)
that will basically mimic a large collection of paper forms that user
would otherwise have to fill out. From what I have read on rails thus
far it seems I would have to create a lot of models and form templates.
Is this common and if so does
2009 Feb 25
9
local variables in partials lead to NameError
I know I must be doing something dumb, but I can''t seem to send a
local variable to my partial. The below code leads to the following
error:
NameError in Residential_listings#new
undefined local variable or method `foo'' for #<ActionView::Base:
0x3fb53f8>
I am trying to call the variable ''foo'' in a partial called
_attachment.html.erb, which is nested in