Does not match ":controller(/:action(/:id(.:format))) do the
routing ?
I thought it should look in controller and if not found look in public/
javascript ?

//Niklas

On 23 Feb, 14:05, Hassan Schroeder <hassan.schroe...@gmail.com> wrote:
> On Tue, Feb 22, 2011 at 8:33 PM, Niklas Nson <niklasn...@meantime.se> 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.jsi 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 ------------------------ hassan.schroe...@gmail.com
> 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to