Yes, I see that the re-directs that I mentioned in my original
question all display a routing error; however, I've never referred to
the public directory in a route definition... but in case you see
anything, here's the routes.rb file:
ActionController::Routing::Routes.draw do |map|
map.root :controller => 'media', :action => 'index'
# RESTful routes
map.resource :account, :controller => 'account', :member =>
{:edit_password => :get, :update_password => :put }
map.resource :session
map.resources :users, :collection => {:forgot_password
=> :any, :forgot_login => :any}
map.resources :languages
map.resources :media, :collection => {:lyrics
=> :get}#, :requirements => { :id => /[\w-]+/ }
map.resources :speakers
map.resources :phrases
map.search '/search/source_language/:source_language_code/
target_language/:target_language_code.:format',
:controller => 'media', :action => 'search',
:target_language_code => nil
map.search_all_languages '/search/
target_language/:target_language_code.:format',
:controller => 'media', :action => 'search'
map.connect '/search/source_language/:source_language_code.:format',
:controller => 'media', :action => 'search'
map.connect '/search', :controller => 'media', :action => 'search'
# Named routes:
map.signup '/signup', :controller => 'users', :action => 'new'
map.login '/login', :controller => 'sessions', :action => 'new'
map.logout '/logout', :controller => 'sessions', :action => 'destroy'
map.home '/', :controller => 'media', :action => 'index'
# Install the default route as the lowest priority.
# map.connect ':controller/:action/:id.:format'
map.connect ':controller/:action/:id'
end
On Jul 9, 2009, at 3:47 PM, Yuri Niyazov wrote:
>
> The reason why I bring it up is, when I do a
>
> wget "http://mightyverse.heroku.com/javascripts/swfobject.js"
>
> which is a link to one of your javascripts, i get back your main page
> with the same type of error:
>
> <div id="flashError">No route matches "/javascripts/swfobject.js" with
> {:method=>:get} (404 Not Found)</div>
>
> as opposed to just getting a standard 404 page. You should post up
> your routes.rb file
>
>
>
> On Thu, Jul 9, 2009 at 6:41 PM, Sarah Allen<[email protected]>
> wrote:
>>
>> That's a bug that the link from the logo is stale and is unrelated.
>> The issue is that none of the css or the javascript for the page will
>> load.
>>
>> On Jul 9, 2009, at 3:25 PM, Yuri Niyazov wrote:
>>
>>>
>>> This doesn't seem like a heroku issue:
>>>
>>> I just went to http://mightyverse.heroku.com/ and then clicked on
>>> the
>>> main link that points to http://mightyverse.heroku.com/home and I
>>> got
>>> a "404" back.
>>>
>>> On Thu, Jul 9, 2009 at 6:19 PM, Sarah Allen<[email protected]>
>>> wrote:
>>>>
>>>> My app works, sort of. It runs but can't seem to access anything
>>>> in
>>>> the public directory. Instead the response is 302 Moved
>>>> Temporarily
>>>> with the location given as the root page.
>>>>
>>>> Any ideas?
>>>>
>>>> Thanks,
>>>> Sarah
>>>>
>>>>>
>>>>
>>>
>>>>
>>
>> http://www.ultrasaurus.com
>>
>>
>>
>>
>>>
>>
>
> >
http://www.ultrasaurus.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Heroku" 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/heroku?hl=en
-~----------~----~----~----~------~----~------~--~---