I just installed and started using the file_column plugin and am getting the following error: No Method Error undefined method ''relative_url_root'' for nil:NilClass Extracted source (around line #5) 5: <%= image_tag url_for_file_column("fan", "image_url") %> I''m running Rails 3.0.1. Does anyone know what I need to do to fix this? Thanks, Tara -- 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 Sun, Apr 17, 2011 at 12:32 PM, Tara Schultz <tara.schultz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> I just installed and started using the file_column plugin and am > getting the following error: > > No Method Error > undefined method ''relative_url_root'' for nil:NilClass > > Extracted source (around line #5) > 5: <%= image_tag url_for_file_column("fan", "image_url") %> > > I''m running Rails 3.0.1. > > Does anyone know what I need to do to fix this? > > Thanks, > Tara >It means that whatever object you are trying to use the method relative_url_root on is nil so therefore no method exists. Check to make sure in your code that the object you are passing in actually exists. B.>-- 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 Apr 17, 1:32 pm, Tara Schultz <tara.schu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I just installed and started using the file_column plugin and am > getting the following error: > > No Method Error > undefined method ''relative_url_root'' for nil:NilClass > > Extracted source (around line #5) > 5: <%= image_tag url_for_file_column("fan", "image_url") %> > > I''m running Rails 3.0.1. > > Does anyone know what I need to do to fix this?file_column is quite ancient by plugin standards - you may want to look into using a more modern replacement. Otherwise, you''ll need to post the full stack trace, as the error alone isn''t particularly helpful. --Matt Jones -- 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.