# Rails plugin question

**URL:** <https://www.ruby-forum.com/t/rails-plugin-question/77520>\
**Category:** Rails\
**Created:** [November 28, 2006, 4:53pm UTC](https://www.ruby-forum.com/t/rails-plugin-question/77520 "2006-11-28T16:53:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bparanj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e9a140/32.png) [@bparanj](https://www.ruby-forum.com/u/bparanj)\
**Post date:** [November 28, 2006, 4:53pm UTC](https://www.ruby-forum.com/t/rails-plugin-question/77520/1 "2006-11-28T16:53:25Z")

</div>

When I run the command

./script/plugin install  
[http://multi-up.ca/code/validates\_email\_format\_of](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

---

<div class="post-metadata">

**Author:** ![bparanj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e9a140/32.png) [@bparanj](https://www.ruby-forum.com/u/bparanj)\
**Post date:** [November 28, 2006, 6:03pm UTC](https://www.ruby-forum.com/t/rails-plugin-question/77520/2 "2006-11-28T18:03:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bparanj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e9a140/32.png) [@bparanj](https://www.ruby-forum.com/u/bparanj)\
**Post date:** [November 28, 2006, 8:06pm UTC](https://www.ruby-forum.com/t/rails-plugin-question/77520/3 "2006-11-28T20:06:13Z")

</div>

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](http://multi-up.ca/code/validates_email_format_of)

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

---

<div class="post-metadata">

**Author:** ![bparanj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e9a140/32.png) [@bparanj](https://www.ruby-forum.com/u/bparanj)\
**Post date:** [November 28, 2006, 8:22pm UTC](https://www.ruby-forum.com/t/rails-plugin-question/77520/4 "2006-11-28T20:22:20Z")

</div>

Bala,

> ./script/plugin install [http://multi-up.ca/code/validates\_email\_format\_of](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](http://www.agilewebdevelopment.com/plugins/validates_email_format_of)

Alain

---

<div class="post-metadata">

**Author:** ![bparanj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e9a140/32.png) [@bparanj](https://www.ruby-forum.com/u/bparanj)\
**Post date:** [November 28, 2006, 10:18pm UTC](https://www.ruby-forum.com/t/rails-plugin-question/77520/5 "2006-11-28T22:18:48Z")

</div>

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](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](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](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.

---

<div class="post-metadata">

**Author:** ![bparanj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e9a140/32.png) [@bparanj](https://www.ruby-forum.com/u/bparanj)\
**Post date:** [November 29, 2006, 4:35pm UTC](https://www.ruby-forum.com/t/rails-plugin-question/77520/6 "2006-11-29T16:35:38Z")

</div>

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](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 A.s  
Plugins book. I also looked at the test directory of the plugin and did  
the  
same assert in my unit test.
