Hi, I Have a strange error when i type the command "rake db:migrate " Can you help to solve this error or give me some advices the error is: DEPRECATION WARNING: Rake tasks in /home/joanne/Desktop/picto/vendor/ plugins/prawnto/tasks/prawnto_tasks.rake are deprecated. Use lib/tasks instead. (called from <top (required)> at /home/joanne/Desktop/picto/ Rakefile:7) thanks for help -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Wed, Jun 29, 2011 at 6:09 PM, Yennie <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > the error is: > > DEPRECATION WARNING: Rake tasks in /home/joanne/Desktop/picto/vendor/ > plugins/prawnto/tasks/prawnto_tasks.rake are deprecated. Use lib/tasks > instead. (called from <top (required)> at /home/joanne/Desktop/picto/ > Rakefile:7) > > > thanks for help > >Move the existing *.rake files that exist in the directories listed in the warning to the lib/tasks directory in your project. So from the output you show - move th prawnto_tasks.rake file to lib/tasks. -Derrek -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
That''s not an error, that''s a deprecation warning. The plugin is very old and doesn''t seem to be maintained. Probably you can have a look at it''s forks on github and pick a more updated version. https://github.com/thorny-sun/prawnto/network If there aren''t any other deprecated methods used in the plugin, then just moving tasks folder inside the lib folder should fix it -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/ukXIWs9pYIAJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
can u help me about this question http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/f277b0fadde17bda?hl=en -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/vzKcJQvbnigJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi all can anyone give me a tip what is "DEPRECATION WARNING: use: should have_many. (called from block in <class:PhraseTest> at test/unit/phrase_test.rb:6)" when i command "rake test" I have installed shoulda (2.11.3) plzz help -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
It is just what it sounds like: a warning that some method, or constant, or whatever it is that you are trying to access, is scheduled to be deprecated in the near future. That is, it will be sent to byte heaven with a few swift swipes of the delete key on next versions of whatever tool it is you are using, which seems to be shoulda in your case. I take it your tests aren''t failing because of that? Paulo Muggler On Wed, Jul 6, 2011 at 23:40, Yennie <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all > > can anyone give me a tip > what is "DEPRECATION WARNING: use: should have_many. (called from > block in <class:PhraseTest> at test/unit/phrase_test.rb:6)" > > when i command "rake test" > I have installed shoulda (2.11.3) > > > > plzz help > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
my test is simple as context ''validation of phrase model'' do should_validate_presence_of :name should_validate_presence_of :category_id should_ensure_length_is_range :name, (2..128) should_have_many :languages should_have_many :translations should_have_many :pictograph_sets end but why it does warn me with that error? On Jul 6, 10:07 pm, Paulo Muggler Moreira <paulomugg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> It is just what it sounds like: a warning that some method, or constant, or > whatever it is that you are trying to access, is scheduled to be deprecated > in the near future. That is, it will be sent to byte heaven with a few swift > swipes of the delete key on next versions of whatever tool it is you are > using, which seems to be shoulda in your case. I take it your tests aren''t > failing because of that? > > Paulo Muggler > > > > > > > > On Wed, Jul 6, 2011 at 23:40, Yennie <joanne0...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi all > > > can anyone give me a tip > > what is "DEPRECATION WARNING: use: should have_many. (called from > > block in <class:PhraseTest> at test/unit/phrase_test.rb:6)" > > > when i command "rake test" > > I have installed shoulda (2.11.3) > > > plzz help > > > -- > > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit this group at > >http://groups.google.com/group/rubyonrails-talk?hl=en.-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Shoulda is telling you that you should write "should have_many", not "should_have_many". ~ jf -- John Feminella Principal Consultant, BitsBuilder LI: http://www.linkedin.com/in/johnxf SO: http://stackoverflow.com/users/75170/ On Wed, Jul 6, 2011 at 22:40, Yennie <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all > > can anyone give me a tip > what is "DEPRECATION WARNING: use: should have_many. (called from > block in <class:PhraseTest> at test/unit/phrase_test.rb:6)" > > when i command "rake test" > I have installed shoulda (2.11.3) > > > > plzz help > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
So that you know that you will have to change your code sometime in the future if you upgrade the gem version. On Thu, Jul 7, 2011 at 00:14, Yennie <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> my test is simple as > context ''validation of phrase model'' do > > should_validate_presence_of :name > should_validate_presence_of :category_id > should_ensure_length_is_range :name, (2..128) > > should_have_many :languages > should_have_many :translations > should_have_many :pictograph_sets > end > > but why it does warn me with that error? > > On Jul 6, 10:07 pm, Paulo Muggler Moreira <paulomugg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > It is just what it sounds like: a warning that some method, or constant, > or > > whatever it is that you are trying to access, is scheduled to be > deprecated > > in the near future. That is, it will be sent to byte heaven with a few > swift > > swipes of the delete key on next versions of whatever tool it is you are > > using, which seems to be shoulda in your case. I take it your tests > aren''t > > failing because of that? > > > > Paulo Muggler > > > > > > > > > > > > > > > > On Wed, Jul 6, 2011 at 23:40, Yennie <joanne0...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi all > > > > > can anyone give me a tip > > > what is "DEPRECATION WARNING: use: should have_many. (called from > > > block in <class:PhraseTest> at test/unit/phrase_test.rb:6)" > > > > > when i command "rake test" > > > I have installed shoulda (2.11.3) > > > > > plzz help > > > > > -- > > > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > For more options, visit this group at > > >http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.