similar to: Form Validation?

Displaying 20 results from an estimated 6000 matches similar to: "Form Validation?"

2006 Mar 07
1
has_and_belongs_to_many tags
I''m trying to create a search where I can find pages by their tag name. Here''s a sample of my code (not working). @tags = Page.find(:all, :conditions => ["#{:tag.name} LIKE ?",''%'' + @params[''searchtags''] + ''%'' ]) My enviroment: I''ve got a table called tags, and a table called pages, both with a
2006 Apr 24
5
New RBAC Plug-In for Rails
Hi, I just finished writing this plug-in. I''ve been using rails for awhile but this is my first time extracting some code and writing it as a plug-in and I''d love to hear to some feedback. Thanks. http://mitchellhashimoto.com/rails/role-based-access-control-plug-in-for-rails/ -Mitchell -- Posted via http://www.ruby-forum.com/.
2006 May 16
1
Bay Cities Ruby Group
Hello, I''m trying to organize a Bay Cities Ruby Group in Southern California. This would include the cities of Redondo Beach, Manhatten Beach, Hermosa Beach, Torrance, Gardena, Lomita, etc. If you are interesting in joining a group that would be like other ruby groups where we discuss tricks, technique, theory, etc. and help each other, then please join the mailing list:
2007 Dec 14
3
Preview Message Before Saving?
Hi all, I''m sure this is really simple, but I can''t seem to figure it out. I want to let users preview their messages before submitting. Something in the form of: def new @post = Post.new end def preview #preview message text here #@post = Post.new(params[:post]) <--? end def create #save message on user''s confirmation ... @post.save end Have any
2008 Feb 13
0
Element.focusFirstElement() causing issue with Element.addMethods()
Prototype 1.6.0.2 Internet Explorer 7 I''ve found that when I call $(''myform'').focusFirstElement(); to set focus on the first field in my form, that this statement "wrecks" the extensions I''ve added using Element.addMethods() if it executes before Element.addMethods(). When I try to call one of my exenstions, the IE7 JavaScript interpreter throws an
2008 Mar 07
3
R-Logo in \LaTeX (Mag. Ferri Leberl)
Dear Mag. Ferri Leberl, I'm using something like: ----------------------- tex.tex --------------------------- \documentclass{article} \usepackage{graphicx} \usepackage{fancyvrb} \newcommand{\Rlogo}{\protect\includegraphics[height=1.8ex,keepaspectratio]{Rlogo.pdf}} \newcommand{\myinput}[1] {\begin{scriptsize} \VerbatimInput[frame=single,label=#1]{#1} \end{scriptsize}} \title{The R logo,
2008 Mar 07
3
R-Logo in \LaTeX (Mag. Ferri Leberl)
Dear Mag. Ferri Leberl, I'm using something like: ----------------------- tex.tex --------------------------- \documentclass{article} \usepackage{graphicx} \usepackage{fancyvrb} \newcommand{\Rlogo}{\protect\includegraphics[height=1.8ex,keepaspectratio]{Rlogo.pdf}} \newcommand{\myinput}[1] {\begin{scriptsize} \VerbatimInput[frame=single,label=#1]{#1} \end{scriptsize}} \title{The R logo,
2008 May 19
2
Log or diary file
Hi! Is it possible to set a file to which both commands and output would get automatically saved? I've tried with sink(), but only get the output. I mean something like a combined history and sink, as you get with File/Save to File.. in the windows GUI. Tis is done with diary filename in Matlab, and you can state diary on and diary off to control what is being saved to the file. Thanks Agus
2005 Dec 28
3
Unit tests, Fixtures, Authority Data, Oh my!
Yo guys... I''m starting to get into testing my current e-commerce Rails app before I Engine-ify it...(Codename "Substruct" - don''t sleep!) I''ve got some data that should be loaded before each test. Convention tells me that I should prepare this data in nice YML files as fixtures, although I''m not quite so sure. The data in question is a country list
2008 Jan 25
2
form formatting
If I want to use fbml elements and rails tags, is there a way to do within a fb:editor? if I do: <% facebook_form_for(:task, at task,:url => create_task_path) do |f| %> Assign Task To: <%= fb_friend_selector %> <%=f.text_field :ttype, :label=> "Title"%> <%=text_field_tag :newrnumdays, ndays, :label => "# Days"%>
2007 Nov 26
3
Time Series Issues, Stationarity ..
Hello, I am very new to R and Time Series. I need some help including R codes about the following issues. I' ll really appreciate any number of answers... # I have a time series data composed of 24 values: myinput = c(n1,n2...,n24); # In order to make a forecasting a, I use the following codes result1 = arima(ts(myinput),order = c(p,d,q),seasonal = list(order=c(P,D,Q))) result2 =
2006 Jun 01
5
History plugin
Hello, I felt annoyed enough when having to redirect user back to their previous location in a hackish way that I wrote this plugin. It avoids storing POST and Ajax request. It also has a facility to specify actions not to store in the history. If you are interested, it''s there: http://blog.cosinux.org/pages/rails-history See you all, Damien -- Damien MERENNE
2006 Aug 04
5
Creating new record from a form? (stringify_keys! error)
Appologies if this has been covered, But it seems the search is busted. I have a simple model object "Biostat" which I am trying to add a new record to. this is the form: <%= form_remote_tag( :update=>''statsTable'', :url=>{:action=>''new''}, :html=> {:action=>''new'',
2010 Oct 27
8
Advanced Diary.
Help me plz run Advanced Diary is 3.0.1 I install mMicrosoft MDAC and can run application, but get error "Provider cannot be found. It may not be proprely installed". How i can run it? =(
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 =>
2006 Jul 24
18
difference between running unabridged
22 sudo mv camping.rb camping-abridged.rb 23 sudo mv camping-unabridged.rb camping.rb when running into problems, the abridged version of camping is rather difficult to debug. so I''m moving to unabridged, but I''m getting this error. [Mon Jul 24 15:50:18 2006] [error] [client 192.168.11.100]
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>
2012 Aug 14
3
Testing Hiera Lookup with Puppet Master
Hello, Is there an easy way to test hiera lookup for a node? A node is not getting the value I expect from Hiera and I want a way to test this. I noticed that `hiera` has an option called `-i` to use the Puppet inventory service. With the latest (RC4 I believe) of Hiera I''m getting the following when I try to use that though: Puppet inventory service lookup failed: NoMethodError:
2006 Jul 26
1
Seek Error ?
anyone ever got this error ? [Wed Jul 26 17:36:25 2006] [error] [client 192.168.11.100] (eval):21:in `seek'', referer: http://rf.mathieu.mv.sha/diary.cgi/edit/1?someting=true [Wed Jul 26 17:36:25 2006] [error] [client 192.168.11.100] : , referer: http://rf.mathieu.mv.sha/diary.cgi/edit/1?someting=true [Wed Jul 26 17:36:25 2006] [error] [client 192.168.11.100] Illegal seek, referer:
2007 Apr 22
0
Reading the contents of a text_field_tag within a form
I''m trying to do something which I think should be simple but can''t find anything after reading and searching for quite a while. I guess I''m searching using the wrong terms maybe. I''d like to read the contents of a text_field_tag within a form from within a controller function before the form is submitted. I could possibly force the submission of the form but