right: you need an index-file for your index-action (actions and views
pair up)
wrong: it has not to be identical to the layout-file.

try to put
  <%= yield %>
into your layout instead of
  <%= render => :partial => @partial %>
and change your index to
  Hello it's <%= Time.now %>

in your controller just leave it like this
  def index
  end

now, if you want to render a partial, do so by saying it for example
in your view. if you put
  render :partial => foo
in your controller, then by default
  layout => false
is set.

maybe i'm even mistaken somewhere, but anyhow i hope i could help. my
suggestion: get hold of some rails basics.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to