Saturday, October 31, 2009

[Rails] Re: *** PLEASE HELP!! *** NoMethodError in AvatarController#upload

There's nothing in the routes.rb file for this section, so am assuming
it hasnt been affected by that,

On 31 Oct, 13:06, Frederick Cheung <frederick.che...@gmail.com> wrote:
> On Oct 31, 12:47 pm, RubyonRails_newbie <craigwest...@googlemail.com>
> wrote:
>
>
>
> >   def index
> >   #  redirect_to hub_url
> >   end
>
> > The error with this code in place reads: undefined local variable or
> > method `hub_url. This is displayed upon accessing url :http://localhost:3000/avatar
>
> > Can anyone help?
>
> Nothing to do with your upload function itself - the hub_url method
> gets created when you declared a named_route called hub in your
> routes.rb - your book probably describes that in more detail if you
> need it
>
> Fred
>
>
>
>
>
> > I might look for another tutorial to upload avatars, but was hoping
> > there would be a simple solution..
>
> > Cheers!
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate