Displaying 20 results from an estimated 21 matches for "novalidatall991".
2006 Jul 06
5
Building a standalone application with RoR
Hello,
I have to code a small application for a car repair shop running under
Windows (98 SE but may be my client could upgrade to 2000) and using RoR
is my definite choise !
The app will be powered by WebRick (which is enough powerfull for a
small app used by only ONE user at a time)
My questions are targeted to the best database to use... I had a look to
SQLite and Firebird but support
2006 May 17
6
White Screen of Death
Hello, I''ve heard these words to describe a RoR application returning an
empty page.
This happen from time to time even here, in the forum.
That is the cause of this misbehaviour ? Is it related with something
external to RoR itself ?
What is the solution to avoid the WSOD ?
--
Posted via http://www.ruby-forum.com/.
2006 Aug 04
8
I need an idea !
Hello here, I need to find an idea to solve a problem
I manage Events which are of kind :arrival or :departure
At first the two kind of events was unrelated but my client want to see
the :departure belonging to the :arrival and vice versa.
I''m searching for a solution to implement this ''link''. I''ve thought
about an integer column containing an uniq id for
2006 May 26
6
Help needed with acts_as_list
Hi ! There must be something I don''t understand clearly in acts_as_list
I have a list of gallery entries (images + text), model is GalleryEntry.
I have a field in_exhibition (boolean)
I want the list to be sorted with a scope on in_exhibition : from 1 to N
for every record having in_exhibition = false and 1 to N for every
record having in_exhibition = true
When I use acts_as_list
2006 May 17
12
Help with Apache config
I have been attempting for days to configure Apache for Rails. I have
read forums, followed How-To''s all in vain. I am hoping someone can help
me out. I am getting the Rails Welcome screen, but when trying to go to
any other url, I get the 500.html message. Take a look for yourself at
http://66.139.78.237 and click on "about your application''s
environment".
2006 May 15
3
Are the hashes faster than activerecord finds ?
Hello, I need to store somewhere one hundred of static ressources text
field (internationalization).
I wonder if it better to put them in a database or in a hash defined at
app startup (in environment.rb)
I would go to the second one, but am I right ?
Thanks
--
Posted via http://www.ruby-forum.com/.
2006 Apr 20
2
Firefox JS Console unusable
Hello, I wonder if somebody else is experiencing the same problem :
Firefox''s Javascript console is unusable with RJS or Scriptaculous
libraries.
Every time I want to use it for debugging purpose (evaluating $ or $$
calls for example) I get a message stating that a script on the page
must be stopped. If I stop that ''script'' (which script it is ?) the
console is
2006 Aug 08
8
Generating a unique id ?
Hello, I need to generate a unique ID, so far I''ve unit tested this
under 100000 iterations and it seems to work :
now.to_i.to_s + ''-'' + now.usec.to_s + ''-'' + rand(1000).to_s
Is there a better way ?
Thanks
Notes :
1) without usec, few percents of generated values are not uniques
2) the id generated is a string so the presence of
2006 Aug 10
3
How to serialize a symbol coming from a Form
Hello, I would like to use serialized symbols as values for select in
forms.
eg.
class Vehicle < ActiveRecord::Base
@@statuses = {:wait => ''No yet'', :ok => ''Run run run''}
validates_inclusion_of status, :in => @@statutes.keys
Serialize status, Symbol
def self.statuses
@@statuses
end
end
Then, I can use Vehicle.statuses.invert to
2006 Jul 11
1
Render to file ?
Hello, I need to render a layout to a text file - How can I do ?
Thanks
--
Posted via http://www.ruby-forum.com/.
2006 Jul 14
0
App crash but nothing in logs
Hello, I have a big problem with an application running in production
mode : the app crashes but there''s nothing in the logs
Setup is Apache + FastCGI - I know there is something wrong with my code
somewhere (crash is not related with the setup)
How can I do to have further informations about the error while staying
in production mode ? Should I run an instance of the application in
2006 Jul 18
0
PHP script timeout RoR counterpart ?
Hello, I''m running Apache + fastcgi and I wonder how to allow a script
to run for a moderated period of time (up to 2 or 3 minutes - this is
for an intranet app, not a website)
At first, I think it should be the -idle-timeout parameter of the
FastCgiServer directive in Apache conf
Am I right ??
Thanks
--
Posted via http://www.ruby-forum.com/.
2006 Jul 26
1
Find with two levels has_many
Hello, I have
A has_many B
and B has_many C
B class have a property is_enabled
C class have a property is_enabled
I need to do a eager loading on A B C
while having a condition on B.is_enabled and C.is_enabled
I''ve tried :
A.find(:all, :include => [:B, :C], :conditions => "A.is_enabled = true
AND C.is_enabled = true")
There''s something wrong with this syntax
2006 Jun 12
3
New "made with Rails" web site
Hello, I''m very pleased to announce you a new "Made with Rails" website
: http://www.pierre-farel.com
Even if the site is running RoR the online shop is still using PHP and
the whole backoffice (shop+site) have been rewriten with RoR
I''m using Apache 2 + Fastcgi and for the moment everything seems to go
fine !!
Thanks for all the helpfull people here !!
--
Posted
2006 May 17
1
Functionnal testing : Watir vs Selenium
Hello, I wonder if some of you have evaluated these two solutions and
how they compares each other.
What did you liked or disliked ?
And may be are you aware of others functionnal testing tools usable with
and integrated with Ruby ?
Thanks
--
Posted via http://www.ruby-forum.com/.
2006 May 24
0
acts_as_list with scope for two fields without parent/child
Hello, I''ve a model which doesn''t rely on parent/child relationship
(it''s a list of news articles)
Each article has a lang char(2) which identify the language of the
article, and a art_type char (2) which identify the place the article
must be displayed (in the shop (SH), or in the website (WE))
So, the news articles order should be scoped on lang + art_type but I
2006 Apr 17
3
Please help : how to link_to() and css styles ?
Hello, I''m having hard times on a very simple problem : how to provide a
css class to a link_to tag ?
I''m using this :
<%= link_to ''Cancel'', :action => ''list'', :class => ''btn-cancel'' %>
and RoR produces this :
<a href="/gallery/list?class=btn-cancel">Cancel</a>
I''ve read the doc
2006 Jul 09
2
Error using sqlite3
Hello, I''m trying to use sqlite3 and I''ve followed the steps here :
http://wiki.rubyonrails.org/rails/pages/HowtoUseSQLite
However I get the error above (uninitialized constant API) when trying
to run a migration.
I''m under Windows XP, using cygwin, the sqlite3.dll file is on the lib
directory of my rails app (filemon, an utility that reports file access
attempts
2006 Jul 26
4
Which is the best place to put business logic ?
Hello, I wonder if it''s better to put business logic in the controller
or in the model (I presume model is better)
Eg. client controller, disable_account action
client = Client.find(params[:id])
client.send_pending_invoices()
client.login_enabled = false
client.receive_newsletter = false
or
client = Client.find(params[:id])
client.disable_account() # and put the whole stuff in this
2006 May 09
4
Ajax calls and characters encoding (accents)
Hello, my application controller defines
before_filter :set_charset
def set_charset
@headers["Content-Type"] = "text/html; charset=ISO-8859-1"
end
Everything is fine and accents are rendered correctly in the browser.
However, when I call a controller/action from Ajax (Prototype), the
charset is not taken in account and accents are garbage displayed (''?''