Forum: Ruby on Rails errors when asking for index.html

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ad745a3a6bdc249a7b34a0b6f5c8d5ec?d=identicon&s=25 Luca Scaljery (jeanluca)
on 2009-03-06 08:49
Hi All

I'm trying setup a RoR project. So far I've only done some HTML stuff
(nothing with controller, models etc)

So I have my RoR environment (via $> rails my_project) but when I ask
for http://127.0.0.1:3000
I get the following error
[code]
Processing ApplicationController#index (for 127.0.0.1 at 2009-03-06
08:11:17) [GET]


ActionController::RoutingError (No route matches
"/javascripts/lib/builder.js" with {:method=>:get}):
    /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/routing/recognition_optimisation.rb:66:in
`recognize_path'
    /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/routing/route_set.rb:386:in
`recognize'
    /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:182:in
`handle_request'
    /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:110:in
`dispatch_unlocked'
    /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:123:in
`dispatch'
    /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in
`synchronize'
    /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in
`dispatch'
    /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:132:in
`dispatch_cgi'
.......
[/code]
At this point I only want to use static html files (in public) css and
javascript

Any suggestions how to fix this ?

thnx
LuCa
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2009-03-06 11:41
(Received via mailing list)
On Mar 6, 7:49 am, Luca Scaljery <rails-mailing-l...@andreas-s.net>
wrote:
> Hi All
>
> I'm trying setup a RoR project. So far I've only done some HTML stuff
> (nothing with controller, models etc)
>
Looks like your index.html is referencing a javascript file that
doesn't exist (at least not at the location you've asked for).

Fred
Ad745a3a6bdc249a7b34a0b6f5c8d5ec?d=identicon&s=25 Luca Scaljery (jeanluca)
on 2009-03-06 12:05
Frederick Cheung wrote:
> On Mar 6, 7:49�am, Luca Scaljery <rails-mailing-l...@andreas-s.net>
> wrote:
>> Hi All
>>
>> I'm trying setup a RoR project. So far I've only done some HTML stuff
>> (nothing with controller, models etc)
>>
> Looks like your index.html is referencing a javascript file that
> doesn't exist (at least not at the location you've asked for).
>
> Fred

I don't do anything with 'builder.js' in my html or javascript.
I guess it has todo with the  ApplicationController#index
This topic is locked and can not be replied to.