Displaying 7 results from an estimated 7 matches for "rubyhttp".
Did you mean:
byhttp
2008 Feb 24
6
Rails 2.0/Autotest "Color is not a class"
I''ve made a model called Color to manage custom styles for my
application. It works find when I''m running it locally in Mongrel,
and I haven''t tried to deploy it yet.
I use ZenTest and Autotest, and when I run autotest I''m getting the
following message:
"C:/rails/band/trunk/app/models/color.rb:1: Color is not a class
(TypeError)"
My Color model is
2008 Mar 09
4
comment avoir la liste des gems ?
bonjour ,
je voudrais savoir de quelle façon est ce qu''on peut savoir les gems
installés dans un serveur hebergeur sans avoir acces au SSH ?
pour les informations sur rails ou ruby c''est fait ;)
en utilisant la commande suivante dans une view :
Rails::Info.to_html
mais le probleme ça donne pas de detail sur les gems !!!!
une idée ?
2008 Mar 20
4
Blank DateTime versus Nil DateTime
Hi!
These days I have been having trouble with a test that tried to test
DateTime functionality. I have discovered that a NULL DateTime is
auto-type casted to NIL by Rails.
My problem here is that I have a field :datetime and I want to allow
NULL datetimes but not wrong datetimes. With this validation if deadline
is wrong or if is is blank it returns true. How I can accomplish this?
protected
def
2008 Mar 20
5
How to unit test Rails itself (API)?
Hello,
I searched unit test for Rails on internet, but all the results are
for testing Rails APPLICATION generated by Rails.
But I think Rails itself needs unit test, too. I need to make sure
that all APIs/methods of Rails work fine in different scenarios.
I didn''t see any unit test files in the Rails package. Does anyone
know how to unit test Rails itself?
Thanks a lot.
2007 Oct 15
4
ArgumentError in StoreController#add_to_cart: wrong number of arguments (1 for 0)
I am really new to Ruby and Rails but as you probably see I am trying
to get the shopping card working from the book. I am getting this
error but I really don''t know what to do. I have looked up several of
topics that stated the same problem but as far as I am, nothing has
helped me out yet. Is there something wrong with the Product model?
This is in the StoreController and I believe it
2007 Dec 10
15
Scaffolding for pre-existing database table in 2.0.1
Hi,
first of all I will apologize in advance for my presumably noobish
question, but I''m only starting to learn Rails and am a little
confused with all the changes in 2.0.1. There are as good as no
tutorials out yet and the 2 or 3 screencasts I''ve seen deal with the
creation of both the app and the database.
Now my problem is that I already have a database with a fair amount of
2008 May 21
8
before_filter with multiple roles
I have multiple roles in my application.
Now I want to block a method for all users except the administrator and
a manager.
When I do this:
before_filter (:check_administrator_role), :only => [:administration]
before_filter (:check_taskmanager_role), :only => [:administration]
The user must have both roles. How can I change that to an "OR"
combination?
--
Posted via