sounds like the guide you're reading is quite dated... i may be mistaken but i haven't seen .rhtml for a while. view files are now named as [action].[mime].[format], so like index.html.erb or edit.js.haml. at any rate, none of that goes in the url.
so say /users/1/edit would go to app/views/users/edit.html.erb (for example) the sites root (/) is a sprcial case. you need to delete public/index.html (or move it), and add a root route in config/routes.rb e.g. root :to => 'Home#index' -n On May 30, 2011, at 10:04 PM, Pardeep <[email protected]> wrote: > Yes, that's completely true. I still have a index.html in the public > folder. However I tried bringing up index.rhtml in the browser > directly as a test. > > http://www.m-odel.com/index.rhtml and then > > http://www.m-odel.com/index.rb > > I'm a total newb, so prob did something really simple wrong here:) > > > > On May 30, 9:59 pm, Neal Clark <[email protected]> wrote: >> didnt read the whole thread but is it possible your project still has >> a public/index.html file? >> >> On May 30, 2011, at 9:57 PM, Pardeep <[email protected]> wrote: >> >>> Hi Ben & Cynthia, >> >>> Thanks for your feedback. Actually I was able to make some headway >>> today by using Ruby 1.9.2 with Rails 3.0.7 from this URL (very useful >>> for a non RVM install): >> >>> http://torqueo.net/installing-ruby-192-and-rails-3-stable-on-ubuntu/ >> >>> Then I installed Passenger from the modrails website gem install >>> passenger. >> >>> So now the db works, at least sqlite3 so far, passenger is working at >>> least in passenger-status. >> >>> I'm on Ubuntu 10.4 LTS. I think its helpful knowing how to deploy, >>> part of the reason I'm switching to Rails vs staying on Coldfusion is >>> the interest in continuing to learn, grow, stretch. So its enjoyable >>> getting into Debian 6, trying Ubuntu via the Linode VPS images. >> >>> The Lincde guides not leading to a compatible workable Rails install >>> lost me some time, but on the other hand I become far more familiar >>> with Linux. >> >>> Here's my sample url: >> >>> m-odel.com >> >>> Its loading fine for htm, however files like index.rb or index.rhtml, >>> nada. Firefox just loads them as downloads. Pardon my ignorance, but >>> per my prior experience we just load pages. Perhaps the Ruby pages >>> need some code at the top for Passenger to take over. >> >>> Heroku is my backup option, but I figured its healthier to know how to >>> deploy a server, I'd like to learn RVM, Capistrano, Chef, these are >>> all new things we never hear of in the Coldfusion world. Heck, I >>> haven't even used Git before:) >> >>> Appreciate any tips on ref why the rhtml and rb files are not >>> processing at the moment. Only reason I'm eager to build something is >>> no particular deadline, I'm just excited to build an app in Rails. >>> Rails new command works fine, db:migrate, db:create all fine. So seems >>> Rake is working fine. I figured out the gemfile and bundle install >>> method. >> >>> One other thing, at this snapshot in time, which is the better >>> performer - Ruby 1.9.2 or Ruby Enterprise with 1.8.7 in the real >>> world? >> >>> Best, >>> Pardeep. >> >>> -- >>> SD Ruby mailing list >>> [email protected] >>> http://groups.google.com/group/sdruby >> >> > > -- > SD Ruby mailing list > [email protected] > http://groups.google.com/group/sdruby -- SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby
