Hi, Does anyone know if there is any tutorials about act_as_tree ? Or can anyone provide step-by-step method of using acts_as_tree? Have tried looking for answers but kept getting "NoMethodError: undefined method `acts_as_tree''". Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Did you install it properly? acts_as_tree has been taken out of rails core and moved to a plugin, so you might not have it installed. On Mon, Mar 31, 2008 at 4:53 PM, user splash < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Hi, > > Does anyone know if there is any tutorials about act_as_tree ? Or can > anyone provide step-by-step method of using acts_as_tree? > > Have tried looking for answers but kept getting "NoMethodError: > undefined method `acts_as_tree''". > > > Thanks > -- > Posted via http://www.ruby-forum.com/. > > > >-- Ryan Bigg http://www.frozenplague.net Feel free to add me to MSN and/or GTalk as this email. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ryan Bigg wrote:> Did you install it properly? acts_as_tree has been taken out of rails > core > and moved to a plugin, so you might not have it installed. > > On Mon, Mar 31, 2008 at 4:53 PM, user splash < > rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > >> Thanks >> -- >> Posted via http://www.ruby-forum.com/. >> >> > >> > > > -- > Ryan Bigg > http://www.frozenplague.net > Feel free to add me to MSN and/or GTalk as this email.Hi, How do I check if it is installed properly? If its not installed properly how or what are the steps to do so? Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 31 Mar 2008, at 07:41, user splash wrote:>> to MSN and/or GTalk as this email. > > > Hi, > > How do I check if it is installed properly? If its not installed > properly how or what are the steps to do so? >Well if you have a folder called acts_as_plugin in vendor/rails it''s probably ok, if it isn''t then it''s definitely not (you can get it from http://svn.rubyonrails.org/rails/plugins/acts_as_tree/) Fred> Thanks > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> On 31 Mar 2008, at 07:41, user splash wrote: >>> to MSN and/or GTalk as this email. >> >> >> Hi, >> >> How do I check if it is installed properly? If its not installed >> properly how or what are the steps to do so? >> > Well if you have a folder called acts_as_plugin in vendor/rails it''s > probably ok, if it isn''t then it''s definitely not (you can get it from > http://svn.rubyonrails.org/rails/plugins/acts_as_tree/) > > FredThanks a lot it worked =) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Mar 31, 4:55 am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Well if you have a folder called acts_as_plugin in vendor/rails it''s > probably ok, if it isn''t then it''s definitely not (you can get it fromhttp://svn.rubyonrails.org/rails/plugins/acts_as_tree/)I don''t have a directory vendor/rails at all. I do have vendor/ plugin. This project is an upgrade from 1.2.6 to 2.0.2. Note however that when I create a new project, e.g. "rails newproject", the newproject/vendor directory there does not have a rails directory either. Without a vendor/rails directory, I too get the "undefined method: acts_as_tree'' error. If I create such a directory, I can''t even start the web server. I have removed and then reinstalled the acts_as_tree plugin, using the ./script/plugin install acts_as_tree syntax. What am I missing? steven --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Figured it out. I had to add the plugin name ''acts_as_tree'' to config.plugins in my config/environment.rb file. On Apr 1, 12:20 am, "Steven D. Arnold" <stev...-/a542Ua497j8vmTbguxeSw@public.gmane.org> wrote:> On Mar 31, 4:55 am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > > > Well if you have a folder called acts_as_plugin in vendor/rails it''s > > probably ok, if it isn''t then it''s definitely not (you can get it fromhttp://svn.rubyonrails.org/rails/plugins/acts_as_tree/) > > I don''t have a directory vendor/rails at all. I do have vendor/ > plugin. This project is an upgrade from 1.2.6 to 2.0.2. Note however > that when I create a new project, e.g. "rails newproject", the > newproject/vendor directory there does not have a rails directory > either. > > Without a vendor/rails directory, I too get the "undefined method: > acts_as_tree'' error. If I create such a directory, I can''t even start > the web server. > > I have removed and then reinstalled the acts_as_tree plugin, using > the ./script/plugin install acts_as_tree syntax. > > What am I missing? > > steven--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I could be mistaken, but I believe that acts_as_tree will be located in vendor/plugins (not vendor/rails) when installed properly. Creating an empty vendor/rails directly will definitely cause you problems because your app will look for rails there instead of the standard system location. When it doesn''t find it, it won''t start. Anyway, on my machine with rails 2.0.2, the usual ''ruby script/plugin install acts_as_tree'' put it into the vendor/rails directory. -Kyle On Mar 31, 11:25 pm, "Steven D. Arnold" <stev...-/a542Ua497j8vmTbguxeSw@public.gmane.org> wrote:> Figured it out. I had to add the plugin name ''acts_as_tree'' to > config.plugins in my config/environment.rb file. > > On Apr 1, 12:20 am, "Steven D. Arnold" <stev...-/a542Ua497j8vmTbguxeSw@public.gmane.org> wrote: > > > On Mar 31, 4:55 am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > > > > Well if you have a folder called acts_as_plugin in vendor/rails it''s > > > probably ok, if it isn''t then it''s definitely not (you can get it fromhttp://svn.rubyonrails.org/rails/plugins/acts_as_tree/) > > > I don''t have a directory vendor/rails at all. I do have vendor/ > > plugin. This project is an upgrade from 1.2.6 to 2.0.2. Note however > > that when I create a new project, e.g. "rails newproject", the > > newproject/vendor directory there does not have a rails directory > > either. > > > Without a vendor/rails directory, I too get the "undefined method: > > acts_as_tree'' error. If I create such a directory, I can''t even start > > the web server. > > > I have removed and then reinstalled the acts_as_tree plugin, using > > the ./script/plugin install acts_as_tree syntax. > > > What am I missing? > > > steven--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---