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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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? On 11/28/06, Alain Ravet <alain.ravet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > .. 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 >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. On 11/28/06, Alain Ravet <alain.ravet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > 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 > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---