Displaying 20 results from an estimated 300 matches similar to: "form_for"
2008 Mar 10
5
Passing extra parameters to functions called from Observers
Hi again,
When you have an ''obeserver'' setup as follows:
$(''myForm'').observe(''submit'', validateForm);
If a user submits the form the ''validateForm'' function is called and
is automagically passed the ''event'' to work with. This is fantastic!
But is there a way to pass another argument to the function?
2010 Jun 02
1
Ajax with JQuery
I have used Ajax link and live validation in index.rhtml
Ajax link requires JavaScript "prototype" and live validation requires
"jquery".
i got "element.dispatchEvent is not a function" on the firebug console
when i used "prototype" and "jquery" in same page index.rhtml
after i removed javascript "prototype" library, i got "Ajax is
2004 Aug 15
3
calibration/validation sets
Hi;
Does anyone know how to create a calibration and validation set from a particular dataset? I have a dataframe with nearly 20,000 rows! and I would like to select (randomly) a subset from the original dataset (...I found how to do that) to use as calibration set. However, I don't know how to remove this "calibration" set from the original dataframe in order to get my
2008 Apr 20
1
vlidations
hi im anas
Im using model validatios,it check''s in the model.....
instead of that when i click the view''s submit button (i.e. .rhtml
file which contain the form details )it''l check validations such
as............... ("emptyness,numerical,format of file uploading......)
MD ANAS ALI
--
Posted via
2008 Jul 02
3
attachment in mail
How to do the attachment in mail like the yahoo and gmail does?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
2006 May 31
2
Storing a NULL value from a radio_button
Hi, I''ve a boolean database field (tinyint(1)) wich allows nulls.
Then, I''ve something like this:
radio_button(''server'',''customer_has_login'',"NULL")
radio_button(''server'',''customer_has_login'',true)
radio_button(''server'',''customer_has_login'',false)
The problem is
2006 Aug 10
3
Radio buttons refusing to load checked...
Hi,
Having big problems with radio buttons that just don''t make sense:
<%= radio_button "events", "impact_type", true %> Positive
<%= radio_button "events", "impact_type", false %> Negative
This should create two radio buttons with the first one checked by
default, right? Cos it doesn''t :(
Any ideas would be great,
Thanks,
2006 Jul 01
4
Radio_button in loop problem
Hi all, I can''t figure out why my radio_buttons won''t reflect the values
stored in my database. I read through some of the previous posts -- is
it true that they don''t work with integers?
This is the code I''m using:
<% for question in @survey.questions %>
<%= debug question %>
<%= radio_button ( "question", :question_id,
2005 Mar 07
2
radio_button helper and "checked" option
Does anyone know how to get the radio_button helper to set the html
"checked" option?
Thanks,
Curt
2013 Dec 18
2
Remote extensions call drops after 20 seconds.
Hello. I have a problem with the configuration of a remote extensions.
Calls are truncated at 20 seconds.
I got my my NAT firewall properly configured. Here I attached my debug in
CLI: http://pastebin.com/gh34E69f
Thank you!
--
Allan Porras
http://allanPorras.com <http://www.AllanPorras.com>
Google Plus: http://goo.gl/BRkbX
Twitter: @alpocr <http://twitter/alpocr>
--------------
2006 Jan 04
4
radio_button method does not recognize int values?
So the api listing says that radio_button(object, method, tag_value,
options = {}) gives a radio button tag, and if object.method ==
tag_value, then the button will be checked.
I verified the method behaves correctly for attributes of type string.
However, if the attribute is of type int, it doesn''t make the button
checked.
Does anyone have some information before I file a bug?
Some
2011 Nov 20
3
Use Ransack with radio buttons for boolean values
Hello
I''m trying to search for active and non active users. These radio buttons
work just fine except that it didn''t reselect itself after the form has
been submitted. So, what should I do to ensure it will be selected just
like how my text field populated automatically after the form has been
submitted?
= search_form_for @q do |f|
= f.radio_button :is_active_false, 1
=
2011 Jul 11
2
Pre-populating association
Hello,
I think this is an easy one for the average Rails developer but I''m a bit stuck.
I''m creating a simple voting app: any user can create a survey, with any number of questions, and other users can then vote by creating a ballot for that survey.
Here''s the modeling:
class Survey < ActiveRecord::Base
has_many :questions
has_many :eligibilities
has_many
2010 Aug 19
6
Depreciation warning when running a db migrate!
Hey,
Whenever i try and run a db migrate i get this error:
DEPRECATION WARNING: Rake tasks in vendor/plugins/livevalidation/tasks
and vendor/plugins/restful-authentication/tasks are deprecated. Use
lib/tasks instead. (called from
/Users/Zack/.gem/ruby/1.8/gems/rails-2.3.8/lib/tasks/rails.rb:10)
I tried moving the different plugins task rake files to lib/tasks and i
got no error but the database
2008 Mar 23
1
radio buttons - how to identify record using value?
I''m making a simple questionnaire app using RoR. I''ve got a model for
Questions, a model for Answers, and a third model, Qa, for matching each
question to five possible answers through foreign keys. So, each qa has
a question and five answers , a1-a5, through belongs_to and a
:foreign_key, and then a selected_answer field for specifying which
answer was selected by the user. The
2008 Aug 27
5
VALIDATION QUESTION
I''m trying to validate a record before save. I''m using one controller
in this case furnii where I have all my calls. The problem is that, the
form containing the field I''m trying to validate resides in the furnii
views. I tried to add validates_presence_of :content (the field name) in
both the furnii model and the ratecomment model but it does not work. I
know there
2007 Sep 14
2
how to use options in radio botton
Hi I am using radio botton,I am struggling to use options..following is
my code..
<%=
radio_button(''community'',''default'',0,options={:checked,:onClick=>"javascript:set_default(this);"})%>
If i am using without checked option its working fine.If i use that its
throwing error....
Please help me
--
Posted via http://www.ruby-forum.com/.
2009 Mar 15
1
remote_form_for ajax validation
Hi,
I have been reading a lot about this, but I do not manage to do a nice
validation. I already managed to save data to the database, to
validate a field, to display a "Everything went well" message. I can
also display an error message, but the view does not end up properly.
This is the form:
<% remote_form_for(product) do |f| %>
<%= f.error_messages %>
<p>
2008 Apr 10
3
Custom Form Builder Help
Hello All,
We use a different custom form builder for our app, but I wanted to
use facebooker''s typeahead widget in side the other form builder.
I don''t know much about form builders, but I created a file in lib/
doing this:
http://pastie.caboo.se/178776
It works great, except that the id''s and class names get messed up.
Instead of school_name, I get
2005 Dec 19
8
Single Table Inheritance question
Hello,
I''m having a heck of a time getting Single Table Inheritance to work in my app.
I have the following models and have scaffolded out Person and Contact.
person.rb
class Person < ActiveRecord::Base
has_many :contacts
end
client.rb
class Client < Person
end
contact.rb
class Contact < ActiveRecord::Base
belongs_to :person
end
phone.rb
class Phone < Contact
end
In