similar to: Default page in the public directory

Displaying 20 results from an estimated 100000 matches similar to: "Default page in the public directory"

2006 Feb 14
8
routing failures
probably something really simple but I don''t understand. Shifting to Apache to w/ fastcgi (definitely feels faster than webrick) Anyway, I set the default route in routes.rb to be map.connect '''', :controller => "placements", :action => ''list'' which worked once I figured out apache... Anyway, now that I have done that, all attempts
2006 Aug 04
1
route error with controllers in a module, should just work
This is ALL I have added to my routes.rb map.connect ''admin'', :controller => ''/admin/welcome'' I have found plenty of examples saying this is correct if you have a WelcomeController in the Admin module, which I do :) But now webrick won''t even start ??? Look at those 4 colons ::::, what is that about ? help ! => Booting WEBrick...
2006 Feb 25
20
Agile Rails book code fails page 32
Starting Agile Web Development with Rails, page 32, everything has worked well so far but on (book not pdf) page 32 I don''t get the "Template Is Missing" error. I get Routing Error Cannot load config/routes.rb: No such file to load -- ./demo/script/../config/../config/routes.rb There is a file at e:\ruby\ror\work\demo\config\routes.rb It''s all greek to me and
2006 Mar 01
15
Is there a perl equivalent of .= in ruby/rails??
I want to make a for loop that concats strings onto a variable: html .= var1 + "this is a test" + whatever What is the syntax that does this in ruby/rails? Also, is there a ''print'' method in ruby? Because when I try to use render_text it will only let me use this once. -- Posted via http://www.ruby-forum.com/.
2006 Feb 21
4
displaying double digits
Hi, I have a question about displaying digits in Rails. whenever I print the price of an item, if the last digit is a zero or double zeros then it doesn''t display properly. How do I display a number so that it looks like currency? thank you! -- Posted via http://www.ruby-forum.com/.
2006 Feb 21
4
customizing layouts for functions
I want to be able to have different layouts in my rails program for different functions. For example, when a person first comes to the site the layout will have a link that says ''home'', ''login'', or register on the menu bar. Once the user logs in however, the layout will change. I want it to show the links ''account manager'',
2005 Dec 08
1
SwitchTower, Apache, and Routing Errors
Hello, I deployed a Rails App using Switchtower and now I''m getting a Routing Error to my Javascript and Stylesheet files. Has anybody else had this issue? Here is the log file. > ActionController::RoutingError (Recognition failed for > "/javascripts/prototype.js"): > /vendor/rails/actionpack/lib/action_controller/routing.rb:470:in >
2006 Apr 12
13
Public Directory not accessible
Been trying to deploy my rails app on Redhat ES3, Apache2, FastCGI with Plesk all day. Fun stuff. Basically, the issue that I can not solve has to do with access to /public. None of my images, javascripts, etc. are working in the app. Trying to access any of these results in a 404 (or routing error if in developer mode). Oddly, the 404 file it displays is -- you guessed it -- in fact *in*
2006 Jul 05
1
Routing error "unitialized constant" after refactoring
Hi. I''ve heavily refactored an application. When I access http://0.0.0.0:3000/ I now get the stack trace at the end of this mail. My routes.rb: ActionController::Routing::Routes.draw do |map| map.connect '''', :controller => ''user/dashboard'', :action => ''boo'' map.connect '':controller/:action/:id'',
2006 Mar 31
3
Need to use a method without the layout
I need to use a method (called by one of my controllers) without using the layout. All the other methods in the controller need to use this layout except for thismethod (becausae it''s called by an Ajax script). I know how to use :layout=>layout_name when calling a method from another method, but nothing is calling this. The layout needs to be removed in the method itself or I need
2006 Jan 20
2
what''s the right way to require a file?
I''m having a problem importing a class from another project (not a RoR application). What''s the right way to require such a file? I have a class ModelPathwayObject. It''s in #{RAILS_ROOT}/../lib/model_pathway_object.rb , so I add that path to config.load_paths. In config/environment.rb: Rails::Initializer.run do |config| config.load_paths += %W(
2006 Mar 02
1
web serveces problem
Hi, I''m trying to added layered web services to my application and from some reason it''s not working for me. i''m working with ruby 1.84, rails 1.0. here are my files: 1. app/apis/kate_api.rb: class KateAPI < ActionWebService::API::Base inflect_names false api_method :check_version, :expects => [:string], :returns => [:string] end 2.
2006 Apr 19
1
Recognition failed for "/"
I am new to ROR and i have been following a few howto''s and just testing things. It works fine in webbrick yet if i try and access using lighttpd or if i run public/dispatch.fcgi from cmd line i get the error below Thanks Recognition failed for "/" /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/routing.rb:488:in `recognition_failed''
2006 Mar 19
2
After Migration dispatch.fcgi not doing its job? Keep gettting the home page
I recently migrated a Rails application. After migration no matter what URL I access within the application, I keep getting the home page. so http://domain.com shows the home page. and so does http://domain.com/blog and also http://domain.com/some/other/url I have routes.rb properly set up (it was working on the old server). I am using RHEL 4 ES with Apache 2 and Fast CGI.
2006 May 02
3
Route problem
I have an index.rhtml is rendered when the (main)controller is loaded. The page contains some check boxes and a submit button. See form code below. When I click the submit button, I get a 404. I don''t know how to post this data back to my controller where method "addvisit" is waiting. It works in WEBrick no problem, but doesn''t work in fcgi on DreamHost. I am
2006 Jun 16
3
Routing Error - Recognition failed for..
I followed the guide for RailsOnWindows (http://wiki.rubyonrails.org/rails/pages/RailsOnWindows) and completed all the steps without any problems. But when I try to access my page, I get: Routing Error Recognition failed for "/rails" rails is what I have in my httpd.conf: <VirtualHost *:80> ServerName rails DocumentRoot "D:/devapps/Apache
2006 Jul 03
2
1.1.4: link_to with mixed case controller names "broken"?
I have a side navigation bar with links embedded in it like the following: <%= link_to( ''Create Job'', { :controller => ''eSimply'', :action => ''upload'' }) %> This link now shows a routing exception Recognition failed for "/eSimply/upload" This link has worked for over through Rails
2006 Mar 28
2
Newbie question - ActionController::RoutingError
When i run my server and just chk in browser i get --------------------------------------------------- ActionController::RoutingError (Recognition failed for "/rails_info/properties"): /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:488:in `recognition_failed''
2006 Feb 22
7
Ruby on Rails with Apache2, MS SQL on Windows XP
My app was running fine with Linux, Apache2/Lighttpd and MySQL. I have a need to migrate to Windows, Apache2 and MS SQL. But I keep getting the following error when I load the initial home page. Anyone can please give me a pointer where to go next for troubleshooting? Thanks in advance. NameError in <controller not set>#<action not set> uninitialized constant
2006 Jun 07
4
Images not showing up
I moved my working rails app from one server to another and suddenly my images are not showing up. In the production log I see this: ActionController::RoutingError (Recognition failed for "/images/header.jpg"): /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/routing.rb:488:in `recognition_failed''