rails plugin question

When I run the command

./script/plugin install http://multi-up.ca/code/validates_email_format_of

I get an error message. When I run it again, it gives plugin already installed message. I have a model class with email field and when I run the unit test it fails saying that it does not recognize validates_email_format_of call in my model class. Am I missing something here? Why is not recognizing the installed plugin?

I am using Rails 1.2 release candidate. TIA. BCP

Bala

I get an error message. When I run it again, it gives plugin already
installed message. I have a model class with email field and when I run the
unit test it fails saying that it does not recognize
validates_email_format_of call in my model class. Am I missing something
here? Why is not recognizing the installed plugin?

.. because it's not installed !!
If you check your vendor/plugins directory, you'll notice that the
plugin was not installed but that an empty directory was created.
That's why you get an error the 2nd time you try and intall it. You
must either manually delete the empty directory, or use the install
--force option.

Alain

Thank you. I will check it. I was just wondering my Rails project is in Subversion, so doing

./script/plugin install http://multi-up.ca/code/validates_email_format_of

won’t work? Do I need to install it using another method that uses Subversion?

Bala,

./script/plugin install http://multi-up.ca/code/validates_email_format_of
won't work? Do I need to install it using another method that uses
Subversion?

If you simply click on the plugin url, you'll notice that it requires
authentication.
You should contact the plugin author
    http://www.agilewebdevelopment.com/plugins/validates_email_format_of

Alain

That’s why I tried

Validates As Email

  • Validates dates against a regular expression that supposedly represents the syntax of RFC822 email addresses.

readme:
https://svn.greenpeace.org/repositories/rails_plugins/validates_as_email/tags/0.1.4/README

svn:
https://svn.greenpeace.org/repositories/rails_plugins/validates_as_email/tags/0.1.4

This site can be accessed. In this case, if I do:

script/plugin install –o
https://svn.greenpeace.org/repositories/rails_plugins/validates_as_email/tags/0.1.4

It should work right? I will try this when I get back home.

I checked the vendor/plugins directory, it was empty. When I ran:

script/plugin install –o
https://svn.greenpeace.org/repositories/rails_plugins/validates_as_email/tags/0.1.4

It installed the plugin successfully. I found this tip in James Adams Plugins book. I also looked at the test directory of the plugin and did the same assert in my unit test.