I am not sure if I am in the right forum but here is to goes. I am a rails noob. I am trying to setup authentication in my current small cookbook app. I am following the basic tutorials. I am trying to use "Acts_as_authenticated." I ran these commands: ruby script/plugin source HTTP://svn.techno-weenie.net/projects/plugins ruby script/plugin install acts_as_authenticated ruby script/generate authenticated user account rake db:migrate I added "before_filter :login_required, :only => [:create, :edit, :update, :destroy]" to my controller then I launch the app in the browser. The site functions as it should then when I click on a link that needs authentication (''edit'' link) I get: NoMemoryError in RecipeController#edit negative allocation size (or too big) Then I cannot get anything working(login,logout again until I restart mongrel. Anyone seen this? here are my specs fedora 6 ruby 1.8.5 mysql 5.0.27 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
jimmygoogle wrote:> NoMemoryError in RecipeController#edit > negative allocation size (or too big) > > Then I cannot get anything working(login,logout again until I restart > mongrel. Anyone seen this? > > here are my specs > fedora 6 > ruby 1.8.5 > mysql 5.0.27I use the same system software, and have been struggling with the same NoMemoryError on some actions for the past few weeks. In the end the only thing that fixed it was installing Ruby 1.8.6 (p110) from source, and re-installing all the gems. Perhaps it was caused by some bad FC6 update. So if nothing simple fixes it the least-messy major thing to do may be to update to FC7. Please post what you did if you do manage to fix it. -- We develop, watch us RoR, in numbers too big to ignore. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Mark Reginald James wrote:> In the end the only thing that fixed it was installing Ruby 1.8.6 > (p110) from source, and re-installing all the gems. Perhaps it > was caused by some bad FC6 update. So if nothing simple fixes it > the least-messy major thing to do may be to update to FC7.Checking my logs, there was a recent update of the ruby rpms to version 1.8.5.113-1. You may fix your problem by changing to a later or earlier version: http://www.rpmfind.net/linux/rpm2html/search.php?query=ruby -- We develop, watch us RoR, in numbers too big to ignore. --~--~---------~--~----~------------~-------~--~----~ 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 ran the steps below but my app still gets the same error - installed ruby from source from ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p110.tar.gz - then gem install -v=1.2.3 rails On Oct 28, 10:54 am, Mark Reginald James <m...-bzGI/hKkdgQnC9Muvcwxkw@public.gmane.org> wrote:> Mark Reginald James wrote: > > In the end the only thing that fixed it was installing Ruby 1.8.6 > > (p110) from source, and re-installing all the gems. Perhaps it > > was caused by some bad FC6 update. So if nothing simple fixes it > > the least-messy major thing to do may be to update to FC7. > > Checking my logs, there was a recent update of the ruby rpms > to version 1.8.5.113-1. You may fix your problem by changing > to a later or earlier version: > > http://www.rpmfind.net/linux/rpm2html/search.php?query=ruby > > -- > We develop, watch us RoR, in numbers too big to ignore.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
jimmygoogle wrote:> I ran the steps below but my app still gets the same error > - installed ruby from source from ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p110.tar.gz > - then gem install -v=1.2.3 railsIf you''re sure your app is using the new Ruby, your problem may have a different cause, like an unterminated recursion. What is the full stack trace of the error? You can instead try updating the set of ruby rpms to a later version. They can be found at the link in my last post. -- We develop, watch us RoR, in numbers too big to ignore. --~--~---------~--~----~------------~-------~--~----~ 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 did a yum remove ''*ruby*'' and then did a clean install like i explained above and it seems to have fixed it. thanks for your help On Oct 28, 6:31 pm, Mark Reginald James <m...-bzGI/hKkdgQnC9Muvcwxkw@public.gmane.org> wrote:> jimmygoogle wrote: > > I ran the steps below but my app still gets the same error > > - installed ruby from source fromftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p110.tar.gz > > - then gem install -v=1.2.3 rails > > If you''re sure your app is using the new Ruby, your problem > may have a different cause, like an unterminated recursion. > What is the full stack trace of the error? > > You can instead try updating the set of ruby rpms to a later > version. They can be found at the link in my last post. > > -- > We develop, watch us RoR, in numbers too big to ignore.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---