similar to: VALIDATION HELP

Displaying 20 results from an estimated 100000 matches similar to: "VALIDATION HELP"

2009 Jun 22
4
modal validation not works
Hi everyone, i have 20 fields in users table. in my admin profile module the admin can modify his infomation. but only 12 fields he can able to modify. so in my controller if params[ :profileinfo ][:first_name] @profileinfo.update_attribute(:first_name,params[ :profileinfo ][:first_name]) end the above simply saves what i enter into the field.why it doesnot consider the modelvalidation.
2006 Feb 19
3
Is there a ''right'' way to do _tag field validation?
I''m reading the Ruby on Rails book by the pragmatic programmers, and it has a brief section on using the _tag input fields (text_field_tag, etc) to collect form data for fields that don''t represent fields in a model. They do validation manually in the controller, which seems really clunky. Is there any way to normalize the form validation between model input fields and non-model
2009 Mar 12
4
How can I append a text_field_tag to a form_for?
Hello people, how can I append a text_field_tag to a form_for? When I submit the form all text_field_tags are not being appended to the params... -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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
2006 Apr 13
0
Custom validation of form fields?
I have been looking at the many validates_* methods that we have available and I am wondering is it possible to create a custom validation method to be performed on a form field? I have the following form (remote via ajax) <%= form_remote_tag :url => { :action => ''do_action'', :id => @pid }, :before =>
2005 Dec 27
1
Form Validation?
How I can I implement form validation easily to helpers such as text_field_tag? If I specified a name of ''myinput'' how would I notify rails that ''myinput'' is erroneous? -- Posted via http://www.ruby-forum.com/.
2006 Apr 20
0
Clearing text_field_tag -- Help PLEASE
I''m trying to clear the input fields on an Ajax form. Unfortunately, I''ve tried this just about every way I can think of and instead of clearing the fields, it''s clearing pretty much the whole page. I would ***really*** appreciate some help! The page has a form that allows the entry of two fields. The form exists inside a <div> with id=entry. When the user
2006 Mar 03
1
rjs isn''t update_page problems
i have a list of, for example, meal_names. Basically, I can submit a name and the name I add shows up in the list.I had this working wehn i created an actual add.rjs template for it. So feeling good about my self, I attempted to move it all to the controller and use some update_page goodness. Now it the ajax middle doesn''t happen. I don''t get any errors but the list
2008 Feb 20
1
text_field_tag - different parameter name
Hi, I have one problem with validation I am creating e-shop and I have products. This view look like this: <% for product in @category.products %> <div class="produktyBox"> <%= product.title %><br /> Price: <br /> <div style="color:red; font-size:large; font-weight:bold; margin- bottom:5px"><%=
2006 May 23
2
auto_complete_field help
Not sure what I am doing wrong. Here is what i am trying to do (code to follow). I have a form to create a new book. This book can have many authors and I wanted to be able to add the authors based on if they appear in the authors table. I originally was going about it a long and arduous way where I had several forms. After thinking about it I decided to dynamically add new fields to
2006 Apr 17
2
Refreshing RHTML page with previously posted data?
All, After a POST, I want to be able to redisplay a view with the data that was previously entered when my controller action notices a validation failure and calls render on the view that does the submit. Example: View x.rhtml - text field is filled in Call controller action Controller action fails validation calls render (:action => ''x'') x.rthml shows up with blank text
2006 Mar 03
0
re: rjs update_page problems
my apologies for my previous butchery of the english language... i have a list of, for example, meal_names. Basically, I can submit a name and the name I add shows up in the list.I had this working when i created an actual add.rjs template for it. So, feeling good about my self, I attempted to move it all to the controller and use some update_page goodness. Now the ajaxy magic doesn''t
2002 Nov 26
2
New to Wine (halflife upgrade fales)
Hi all, This is a total newbe mistake I'm sure but I'm stumped. I have installed: wine-20020605-2.i386.rpm wine-devel-20020605-2.i386.rpm in redhat 8.0 I can get all the way through the setup of halflife sound test and all, then if I try to do the auto update it fails. It can't see a network connection. I am getting errors in my terminal during the install even though it looks
2008 Jan 19
5
Open a (redbox) modal popup from inside a controller?
Hi, I''m trying to open a modal popup window using redbox to display a styled notification/alert to the user. The helpers in the redbox documentation only describe how to open a redbox when the user clicks on a link, e.g., link_to_redbox() or link_to_remote_redbox(). Is there any way to open a redbox, or a different type rails- compatible modal popup, from inside a controller action?
2012 May 21
1
Need Help in K-fold validation in Decision tree
Hi , I have built decision tree using rpart . I want to do k Fold validation on the decision tree . Could you help how can i do that .. please tell the package which required for K fold validation. Regards, Santosh -- View this message in context: http://r.789695.n4.nabble.com/Need-Help-in-K-fold-validation-in-Decision-tree-tp4630730.html Sent from the R help mailing list archive at
2009 Nov 11
6
HeLp oN my database
Using my application i can able to save a new record into my db but i cannot update a existing record into my db. using update query i can able to update my records. but using update_attributes it doesnot update my records. even i cant find any errors in logs or something. throughout my application i can able to save a new record but unable to update my existing records. actually i have changed
2006 Jul 30
1
Insert multiple new child records with the parent
Hello, I am implementing a classic invoice application. On the create new invoice page I want to allow users to add new line items using AJAX: ----------------------------------------------------------------------------- Invoice Date [ ] Client [ ] Line Items 1. [ ] $[ ] <add new line item> <save> <cancel>
2006 Jun 02
4
Creating an array of params
I''ve got a bunch of text fields that I''d like to access as an array. The code looks like this: <%= text_field_tag "people[0][entry]" %> <%= text_field_tag "people[1][entry]" %> <%= text_field_tag "people[2][entry]" %> So when I submit the form, I''d like to be able to use it like params[:people].each {|p| p[:entry]}
2007 Aug 03
2
Does collection_select work in list.rhtml?
Hi, I have 2 models: Model 1: er, Columns: <er_id, er_name> Model 2: er_process, Columns: <er_id, er_process_name> er_id is a foreign key for Model 2. When I am creating a new er_process or editing an existing one, I have been successful to use collection_select to show the available er''s so that the user can select a particular er by its name (to populate the er_id
2007 Sep 20
2
Rendering a partial from within that partial
I am having trouble rendering a partial called ''names'' through a submit tag located within that partial. The form data is saving with my current code. However, the existing data is not loading into the form and the partial is not being re-rendered upon submission to reveal the changes to this data.What might I do to fix this? show.rhtml <%= javascript_include_tag :defaults
2008 Jul 13
4
How to justify text in text_field_tag
I would like to have the text in a text_field_tag right justified instead of left justified. Is there a way to do this? Thanks, Alex -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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