Ruby on Rails Friday, July 2, 2010

I'm new in RoR:)

I have controller and view (/app/controllers/greeting_controller.rb
and /app/views/greeting/index.rhtml /.erb/.html.erb - doesn't match).

greeting_controller.rb source:

class GreetingController < ApplicationController
def index
@message = "Hello world!"
end
end


index.rhtml source:

<html>
<head><title>test</title></head>
<body>
<p><%= @message %></p>
</body>
</html>

and html output is exact copy of index.rhtml

* i'm working on macOS 10.6.4

please help!!))

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment