Displaying 7 results from an estimated 7 matches for "formfield".
2006 Jul 02
6
remote form w/ evalScripts:true
...ist_item_link'', ''list_item_type'', :value => ''List'' %>
Which list?
<%= select ''list_item_link'', ''list_item_id'', @lists.collect{ |l|
[ l.name, l.id] },
{ :include_blank => true},
{ :class => "formfield", :onchange => "this.form.submit()" }
%>
<%= end_form_tag %>
And here is the code in the template that actually works (using a GET
instead):
Which list?
<%= select ''list_item_link'', ''list_item_id'', @lists.collect{ |l|
[ l.name,...
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 s...
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 - SURPRISE! - now
i can update title to an empty string ""! Why?
Even if i have this in my rule
validates_presence_of :title,...
2007 Jan 18
7
form_tag broken in Rails 1.2 RC2 or is it me?
...9;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 for="sso_id">SSO ID:</label>
<%= text_field_tag :sso_id, params[:sso_id] %>
</div>
</div>
<div class="row">
<div class="formfield">
<label for="password"...
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)";...
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