similar to: Strange problem with Rails and Tomcat

Displaying 20 results from an estimated 8000 matches similar to: "Strange problem with Rails and Tomcat"

2009 Oct 29
3
How to obtain the context path in a Jruby app on Tomcat?
Hi all, I successfully deployed my JRuby on Rails app on Tomcat In a jsp page I''d use ${pageContext.request.contextPath} to obtain my context path.How could I do this in a Ruby controller? Thanks Rafael Roque -- Posted via http://www.ruby-forum.com/.
2006 Aug 09
6
How to change the error message easy way
validates_presence_of :fname results in the error message "Fname can''t be blank". What I want is "First Name can''t be blank". I could do this def validate errors.add_to_base("First Name can''t be blank") if fname.blank? end I find this clunky and I have to put everyrhing in the validate method. Is there an easy to get what I want. I
2006 Jul 20
7
How do you use :message with validation?
If I do validates_uniqueness_of :name, :message => "It''s not uniqueeee!!!" then how do I have it display that message when the check fails? -Ben Lisbakken -- Posted via http://www.ruby-forum.com/.
2006 Apr 07
2
errors.add_to_base
What are the limitations on using: errors.add_to_base to display errors in views? I have tried for days to add errors from my object.rb and they never get displayed. class Keyword < ActiveRecord::Base validates_presence_of(:name, :message => "Name is required.") validates_uniqueness_of(:name, :message => "This name is already in use. Please try
2006 May 02
1
Custom error messages
On a model I have the following simple validator: def validate unless name && name =~ /^\w+$/ errors.add_to_base("Name is missing") end end I would like to display a custom message on my views, without using the helper <%= error_messages_for "table" %> Where the messages from errors.add_to_base are stored and how to access them in the views? --
2009 Apr 02
3
error_messages_for does not display the error
Hi all I''ve approached Rails since a couple of months to develop a quick application for my company. Fantastic framework. As every noob, I do have some gaps to cover. The one which is giving me a little frustration, generated by my lack of knowledge is as follows. I need to make sure the region object is not deleted if there are countries associated with it. I solved this by putting a
2010 Feb 03
4
customizing validation msg
Hi, i am using the default validation of RoR how i will customize them i dont want to display the default message but i want to print the message i want like for city_id the default message is "City can''t be blank" i want this message as "Please enter city" Regards -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 May 31
1
ActiveRecord: When / where to validate data? Tricky question
First of all, thanks for you time. I have kind of a tricky question and wanted to see what you guys thought. ------------------------------------------- Lets say I have this: ------------------------------------------- class Purchase < ActiveRecord::Base validates_numericality_of :some_number, :only_integer => true end ------------------------------------------- Then I do this:
2006 Jan 19
1
Model Validation & Floating Attributes
Hello all ! I have a model being validated that spits it''s error messages on the resulting page using: error_messages_for(:mymodel) .... Basic stuff. It''s working perfectly. Now, I have something else I want to check on the same page (that isn''t an attribute to the Model)... and am trying to add it using: @mymodel.errors.add_to_base("another error here")
2009 Mar 27
1
snow Error.
Hello, I have a program that used to run well in October, it uses library snow. Since then, one change has ocurred (snow library has been updated) and another could have ocurred (I've unadvertently modified something). Anyway, now when I make the call: parallel.model.results <- clusterApply(cl,processors.struct,MCexe) exactly as I used to do, where MCexe is my function and
2006 Jun 29
1
before_destroy & verification
Hey, probably an easy question but, I''m trying to get a method to run "before_destory" for a model, and I want the method to throw an error, and not delete the object from the database, if a certain condition is held Obviously, I can just raise an error and rescue it... but for some reason I can''t get <% error_messages_for ''model" %> to catch
2015 Apr 01
2
Recommended stations on a server and slave domain controller
Hello Marc, Thanks for you help, I will give you our feedbacks if we can achieve this project. Regards Sourisack Phanivong Support OSSA LINAGORA 80 Rue Roque de Fillol 92800 Puteaux Le 31/03/2015 21:09, Marc Muehlfeld a ?crit : > Hello Sourisack, > > Am 31.03.2015 um 15:50 schrieb Sourisack PHANIVONG: >> As I told you, the final aim is to have more than 100 000 users in one
2007 Jul 31
3
yum remove 'tomcat*'?
On CentOS 5, why does 'yum remove tomcat*' remove all of the openoffice packages? -- Les Mikesell lesmikesell at gmail.com
2007 Oct 03
2
Providing HTML in an error message generated by validation
All, I have some validation that I''m doing in a model. As part of the error message, I would like to provide an HTML link. What is the best approach to handling this? APPROACH 1: One way is to include ActionView::Helpers::UrlHelper include ActionView::Helpers::TagHelper in my model so that I can use link_to to generate my link (obv. I could hard code HTML as well). But anyway that
2008 Jun 05
1
sd function (PR#11586)
Full_Name: Ram?n Folgueira Roque Version: 2.7.0 OS: Windows Submission from: (NULL) (200.11.210.98) The sd function doesn`t give the same results than older version, when it?s applied to a data frame object and the object contains some character data. Ex: datos=data.frame( ) fix(datos) Grupo Vel A 10.1 A 9.8 B 10
2009 Oct 08
2
Problem with oracle_enhanced adapter
Hi, when I configure my app to use the oracle_enhanced adapter it throws the following exception: java.sql.SQLException: ORA-01882 : Timezone region not found How can I solve this? Thanks, Rafael Roque -- Posted via http://www.ruby-forum.com/.
2015 Mar 30
2
Recommended stations on a server and slave domain controller
Hello Marc, Sorry for the confusion, AD is the current solution installed and used. The goal we want to achieve is to install a configuration for a lot of users (about 100 000) with one master domain. So we thought that it may be possible to have a principal domain and several slave domains. If this configuration can't be considered, we want to know if it's a feature that we could
2009 Nov 10
6
Master/detail report with Rails and Ireport/JasperReports
Hi all, has anyone made it already? -- Posted via http://www.ruby-forum.com/.
2009 Jul 25
3
Rails Authorization and Security question
Working through the Users and Authentication of Learning Rails book (great book, code needs to be proof-read in a few cases, though), I came across this: There''s still one leftover that may be worth addressing, depending on your security needs. The authorization? method has secured the data, and the view no longer shows the user options they can''t really use, but if a
2006 May 19
1
FileColumn
I''m using Windows and Postgres 8. I installed RMagic gem thingy and FileColumn plugin ok. I followed instructions exactly as directed on FileColumn web site which is very straight forward: ---model class My_model < ActiveRecord::Base file_column :column_for_file_name end -----view -upload form--set to mulitpart <%= file_column_field "my_model",