I can see the index action if I go to /
If I go to home/index, I cannot see the page unless I add get "home/
index" to my routes
My routes file looks like this:
# routes.rb
Site::Application.routes.draw do
root :to => "home#index"
end
# home_controller.rb
class HomeController < ApplicationController
def index
@page_title = "Home"
end
def view
@page_title = "View page"
end
end
and I have two view files in app/views/home:
index.html.erb
view.html.erb
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.