On Tue, Feb 22, 2011 at 8:33 PM, Niklas Nson <[email protected]> wrote:
> I moved the file to /views/javascripts/getlocation.js.erb > But there must be something wrong with routes or something else > still. > > If i go to: http://localhost:3000/javascripts/getlocation.js i get a > No route matches "/javascripts/getlocation.js" error. Yes, that's exactly the problem :-) > [Routes] > ModcubeApp::Application.routes.draw do > > get "log_in" => "sessions#new", :as => "log_in" > get "sign_up" => "accounts#new", :as => "sign_up" > root :to => "pages#home" > > resources :accounts > > match ":controller(/:action(/:id(.:format)))" > > end So add that route and you're done. -- Hassan Schroeder ------------------------ [email protected] twitter: @hassan -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

